mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 09:50:27 +00:00
No parsing yet, just CSSContainerRule and the supporting ContainerQuery class. CSSContainerRule is unusual in how it matches, because instead of it either matching or not matching globally, it instead is matched against a specific element. But also, some at-rules inside it always apply, as if they were written outside it. This doesn't fit well with how CSSConditionRule is implemented, and will likely require some rework later. For now, `condition_matches()` always returns false, and `for_each_effective_rule()` is overridden to always process those global at-rules and nothing else.
15 lines
518 B
Text
15 lines
518 B
Text
#import <CSS/CSSConditionRule.idl>
|
|
|
|
// https://drafts.csswg.org/css-conditional-5/#dictdef-csscontainercondition
|
|
dictionary CSSContainerCondition {
|
|
required CSSOMString name;
|
|
required CSSOMString query;
|
|
};
|
|
|
|
// https://drafts.csswg.org/css-conditional-5/#csscontainerrule
|
|
[Exposed=Window]
|
|
interface CSSContainerRule : CSSConditionRule {
|
|
readonly attribute CSSOMString containerName;
|
|
readonly attribute CSSOMString containerQuery;
|
|
readonly attribute FrozenArray<CSSContainerCondition> conditions;
|
|
};
|