- From: jugglinmike via GitHub <sysbot+gh@w3.org>
- Date: Fri, 07 Jun 2019 18:03:29 +0000
- To: public-css-archive@w3.org
Just stumbled over this myself. As @foolip mentioned, there are a few discrepancies between the two. In particular, CSSOM defines an `insertRule` method whose second argument is optional, while CSS Conditional Rules' version of the method requires the second argument. This seems to be a source of confusion since Chromium requires the argument, but Firefox and WebKit do not: <style id="s"></style> <script> s.sheet.insertRule('@media all {}'); s.sheet.cssRules[0].insertRule('* {}'); // throws in Chromium only </script> For what it's worth, an optional argument is more consistent with [the `insertRule` method of `CSSStyleSheet`](https://drafts.csswg.org/cssom-1/#cssstylesheet). -- GitHub Notification of comment by jugglinmike Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3528#issuecomment-499982996 using your GitHub account
Received on Friday, 7 June 2019 18:04:18 UTC