Summary: Implement and spec some non-standard CSSOM APIs to converge
with every other browser, since they're unlikely to ever remove their
implementations and the lack of them causes compat issues for us, see
the bug, the CSSWG issue [1] and everything cross-linked from there.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1545823
Link to standard: https://github.com/w3c/csswg-drafts/pull/3900
Platform coverage: All
Estimated or target release: 68
Preference behind which this will be implemented: None
Is this feature enabled by default in sandboxed iframes? Yes
DevTools bug: N/A
Do other browser engines implement this? Yes, all of them, since
basically forever (see https://github.com/whatwg/compat/issues/98).
Only know difference is that Blink and my implementation returns a live
object for CSSStyleSheet.rules, while WebKit returns a static list of
rules. I've filed a bug on WebKit to consider simplifying their code and
making this just an alias to converge: https://webkit.org/b/197725.
web-platform-tests: Added as part of the implementation.
Is this feature restricted to secure contexts? No, it's a legacy API,
mostly aliases of already-non-restricted APIs.
As always, let me know if you think there's any concerns with proceeding.
-- Emilio
[1]: https://github.com/w3c/csswg-drafts/issues/3814
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform