Definition
CSS Object Model (CSSOM) defines 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;
};
Methods and attributes that return objects implementing CSSStyleDeclaration
Referring IDL interfaces/dictionaries
Referring specifications
- CSS Anchor Positioning refers to
CSSStyleDeclaration
- CSS Fonts Module Level 4 refers to
CSSStyleDeclaration