Skip to content

Truly independent web browser

672 B
Raw Blame
// https://drafts.csswg.org/cssom/#cssstyledeclaration
[Exposed=Window, ImplementedIn=Rust]
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;
};