Ver código fonte

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

Tim Ledbetter 1 ano atrás
pai
commit
f303905875
1 arquivos alterados com 1 adições e 1 exclusões
  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);
 
     // 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);
     undefined removeRule(unsigned long index);
 };