/* * 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/#cssimagevalue class CSSImageValue final : public CSSStyleValue { WEB_PLATFORM_OBJECT(CSSImageValue, CSSStyleValue); GC_DECLARE_ALLOCATOR(CSSImageValue); public: [[nodiscard]] static GC::Ref create(JS::Realm&, NonnullRefPtr source_value); virtual ~CSSImageValue() override = default; virtual WebIDL::ExceptionOr to_string() const override; virtual WebIDL::ExceptionOr> create_an_internal_representation(PropertyNameAndID const&, PerformTypeCheck) const override; private: explicit CSSImageValue(JS::Realm&, NonnullRefPtr source_value); virtual void initialize(JS::Realm&) override; }; }