mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-27 01:55:31 +02:00
This readonly attribute returns the containing CSS rule, or null (in the case of element inline style). (cherry picked from commit a12d28fd3053638ce6f4215bed2d8d45cda86375)
20 lines
736 B
Plaintext
20 lines
736 B
Plaintext
// https://drafts.csswg.org/cssom/#cssstyledeclaration
|
|
[Exposed=Window]
|
|
interface CSSStyleDeclaration {
|
|
|
|
[CEReactions] attribute CSSOMString cssText;
|
|
|
|
readonly attribute unsigned long length;
|
|
getter CSSOMString item(unsigned long index);
|
|
|
|
CSSOMString getPropertyValue(CSSOMString property);
|
|
CSSOMString getPropertyPriority(CSSOMString property);
|
|
|
|
[CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
|
|
[CEReactions] CSSOMString removeProperty(CSSOMString property);
|
|
|
|
readonly attribute CSSRule? parentRule;
|
|
[FIXME, CEReactions, LegacyNullToEmptyString] attribute CSSOMString cssFloat;
|
|
|
|
};
|