ladybird/Libraries/LibWeb/CSS/CSS.idl
norbiros 90c0decd95 LibWeb/CSS: Add CSS.registerProperty JS method
This adds an *almost* complete implementation of `CSS.registerProperty`
method enabling further progress on the `@property` feature.
2025-07-22 10:57:54 +01:00

18 lines
548 B
Text

dictionary PropertyDefinition {
required CSSOMString name;
CSSOMString syntax = "*";
required boolean inherits;
CSSOMString initialValue;
};
// https://www.w3.org/TR/cssom-1/#namespacedef-css
[Exposed=Window]
namespace CSS {
CSSOMString escape(CSSOMString ident);
boolean supports(CSSOMString property, CSSOMString value);
boolean supports(CSSOMString conditionText);
// https://www.w3.org/TR/css-properties-values-api-1/#dom-css-registerproperty
undefined registerProperty(PropertyDefinition definition);
};