ladybird/Libraries/LibWeb/CSS/Descriptor.h
Callum Law e7243f0090 LibWeb: Support custom descriptors
Some at-rules (i.e. `@function`) require us to support custom
descriptors (e.g. `--foo`).

We do this by adding `DescriptorID::Custom` and using a new
`DescriptorNameAndID` class in a bunch of places where we previously
just used `DescriptorID`
2026-03-27 11:19:28 +00:00

22 lines
381 B
C++

/*
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/NonnullRefPtr.h>
#include <LibWeb/CSS/DescriptorNameAndID.h>
#include <LibWeb/Forward.h>
namespace Web::CSS {
struct Descriptor {
~Descriptor();
DescriptorNameAndID descriptor_name_and_id;
NonnullRefPtr<StyleValue const> value;
};
}