/* * Copyright (c) 2025, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace Web::CSS { // https://drafts.css-houdini.org/css-typed-om-1/#cssmathinvert class CSSMathInvert : public CSSMathValue { WEB_PLATFORM_OBJECT(CSSMathInvert, CSSMathValue); GC_DECLARE_ALLOCATOR(CSSMathInvert); public: [[nodiscard]] static GC::Ref create(JS::Realm&, NumericType, GC::Ref); static WebIDL::ExceptionOr> construct_impl(JS::Realm&, CSSNumberish); virtual ~CSSMathInvert() override; virtual void initialize(JS::Realm&) override; virtual void visit_edges(Visitor&) override; GC::Ref value() const; virtual String serialize_math_value(Nested, Parens) const override; private: CSSMathInvert(JS::Realm&, NumericType, GC::Ref); GC::Ref m_value; }; }