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

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