Parcourir la source

LibWeb: Add the `CSSStyleSheet.rules` alias for `CSSStyleSheet.cssRules`

Tim Ledbetter il y a 1 an
Parent
commit
f303905875
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Userland/Libraries/LibWeb/CSS/CSSStyleSheet.idl

+ 1 - 1
Userland/Libraries/LibWeb/CSS/CSSStyleSheet.idl

@@ -16,7 +16,7 @@ interface CSSStyleSheet : StyleSheet {
     // FIXME: undefined replaceSync(USVString text);
     // FIXME: undefined replaceSync(USVString text);
 
 
     // https://drafts.csswg.org/cssom/#legacy-css-style-sheet-members
     // https://drafts.csswg.org/cssom/#legacy-css-style-sheet-members
-    // FIXME: [SameObject] readonly attribute CSSRuleList rules;
+    [SameObject, ImplementedAs=css_rules] readonly attribute CSSRuleList rules;
     // FIXME: long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
     // FIXME: long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
     undefined removeRule(unsigned long index);
     undefined removeRule(unsigned long index);
 };
 };