CSSStyleDeclaration.idl 900 B

12345678910111213141516171819202122
  1. // https://drafts.csswg.org/cssom/#cssstyledeclaration
  2. [Exposed=Window]
  3. interface CSSStyleDeclaration {
  4. [CEReactions] attribute CSSOMString cssText;
  5. readonly attribute unsigned long length;
  6. getter CSSOMString item(unsigned long index);
  7. CSSOMString getPropertyValue(CSSOMString property);
  8. CSSOMString getPropertyPriority(CSSOMString property);
  9. [CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
  10. [CEReactions] CSSOMString removeProperty(CSSOMString property);
  11. readonly attribute CSSRule? parentRule;
  12. // NOTE: cssFloat is implemented manually in the bindings code, along with the other property accessors.
  13. // Hence, this does not need to be implemented.
  14. // [CEReactions, LegacyNullToEmptyString] attribute CSSOMString cssFloat;
  15. };