W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

[csswg-drafts] [cssom] Figure out what to do with non-standard CSSStyleSheet methods in WebKit / Blink (#3814)

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Mon, 08 Apr 2019 16:40:16 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-430549848-1554741615-sysbot+gh@w3.org>
emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom] Figure out what to do with non-standard CSSStyleSheet methods in WebKit / Blink ==
WebKit / Blink implement some legacy Microsoft CSSOM functions on CSSStyleSheet, which if I'm not wrong come from Microsoft:

https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/css_style_sheet.idl?l=37-40&rcl=6dc816e543555790648ec5af1ca827431a7d5807

 * `rules` just calls `cssRules`.
 * `removeRule` just calls `deleteRule`.
 * `addRule` just string-concats a selector and a style block and calls `insertRule`.

It's not too hard to add them to Gecko, but `addRule` in particular seems rather hacky / inconsistent with the rest of the APIs. We haven't seen any compat issue due to not having them (but I just got bit by it when trying to test something).

Would there be any chance on collecting data and potentially removing them? Or is all hope lost / is not worth the churn and should I just put them in the spec?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3814 using your GitHub account
Received on Monday, 8 April 2019 16:40:17 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:07 UTC