ladybird/Libraries/LibWeb/CSS/CSS.idl
Andreas Kling 388ec003ca LibWeb: Take UTF-16 names in CSS property APIs
Move the remaining CSSStyleDeclaration property-name APIs to
Utf16FlyString. This lets CSSOM binding and generated accessor code
pass JS property names without first constructing FlyString values.

Keep internal custom-property and descriptor storage unchanged for now.
Those remaining FlyString conversions are at storage boundaries that
will be migrated in follow-up commits.
2026-06-09 11:48:02 +02:00

25 lines
823 B
Text

// https://drafts.csswg.org/cssom-1/#cssomstring
typedef DOMString CSSOMString;
typedef Utf16DOMString Utf16CSSOMString;
dictionary PropertyDefinition {
required CSSOMString name;
CSSOMString syntax = "*";
required boolean inherits;
CSSOMString initialValue;
};
// https://drafts.csswg.org/cssom-1/#namespacedef-css
[Exposed=Window]
namespace CSS {
CSSOMString escape(CSSOMString ident);
boolean supports(Utf16CSSOMString property, CSSOMString value);
boolean supports(CSSOMString conditionText);
// https://drafts.css-houdini.org/css-properties-values-api-1/#dom-css-registerproperty
undefined registerProperty(PropertyDefinition definition);
// https://drafts.css-houdini.org/css-typed-om-1/#numeric-factory
// NB: Generated by GenerateCSSNumericFactoryMethods.cpp
};