-
Notifications
You must be signed in to change notification settings - Fork 747
[cssom] Define legacy CSSStyleSheet methods as implemented in Blink. #3900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
307cccc
to
ffe6f2b
Compare
WPT tests in https://bugzilla.mozilla.org/show_bug.cgi?id=1545823 |
4128217
to
5bdfa67
Compare
cssom-1/Overview.bs
Outdated
void deleteRule(unsigned long index); | ||
|
||
[SameObject] readonly attribute CSSRuleList rules; | ||
long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow. I guess in Blink this is done via https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/css_style_sheet.idl?q=css_style_sheet.idl&sq=package:chromium&g=0&l=1 which bottoms out at https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/bindings/IDLExtendedAttributes.md#DefaultValue_p
/cc @yuki3 as Blink bindings team member. I hope we can get rid of [DefaultValue] and prevent any future APIs from ending up this weird.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to d 8000 escribe this comment to others. Learn more.
I'll trust your reverse-engineering. Spec text otherwise looks good.
…et.addRule and CSSStyleSheet.removeRule. r=bzbarsky It's not worth dying on this hill. Both Blink and WebKit pass the tests. (Well, WebKit actually fails one of the latest ones I wrote, cssRules and rules are not the same JS object, WebKit returns a new rule list. I'll file) Spec PR in w3c/csswg-drafts#3900. Differential Revision: https://phabricator.services.mozilla.com/D30348 --HG-- extra : moz-landing-system : lando
…et.addRule and CSSStyleSheet.removeRule. r=bzbarsky It's not worth dying on this hill. Both Blink and WebKit pass the tests. (Well, WebKit actually fails one of the latest ones I wrote, cssRules and rules are not the same JS object, WebKit returns a new rule list. I'll file) Spec PR in w3c/csswg-drafts#3900. Differential Revision: https://phabricator.services.mozilla.com/D30348
5bdfa67
to
ed0ac45
Compare
Tweaked the text so that the header is properly nested under the previous section, and add some advisement text to discourage usage. Normative text is the same. |
ed0ac45
to
0f10d5e
Compare
… CSSStyleSheet.removeRule. It's not worth dying on this hill. Both Blink and WebKit pass the tests. (Well, WebKit actually fails one of the latest ones I wrote, cssRules and rules are not the same JS object, WebKit returns a new rule list. I'll file) Spec PR in w3c/csswg-drafts#3900. Differential Revision: https://phabricator.services.mozilla.com/D30348 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1545823 gecko-commit: a93ed2a80220b9ba15fb9b59ea79b5f1ee8f7693 gecko-integration-branch: central gecko-reviewers: bzbarsky
… CSSStyleSheet.removeRule. It's not worth dying on this hill. Both Blink and WebKit pass the tests. (Well, WebKit actually fails one of the latest ones I wrote, cssRules and rules are not the same JS object, WebKit returns a new rule list. I'll file) Spec PR in w3c/csswg-drafts#3900. Differential Revision: https://phabricator.services.mozilla.com/D30348 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1545823 gecko-commit: a93ed2a80220b9ba15fb9b59ea79b5f1ee8f7693 gecko-integration-branch: central gecko-reviewers: bzbarsky
… CSSStyleSheet.removeRule. It's not worth dying on this hill. Both Blink and WebKit pass the tests. (Well, WebKit actually fails one of the latest ones I wrote, cssRules and rules are not the same JS object, WebKit returns a new rule list. I'll file) Spec PR in w3c/csswg-drafts#3900. Differential Revision: https://phabricator.services.mozilla.com/D30348 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1545823 gecko-commit: a93ed2a80220b9ba15fb9b59ea79b5f1ee8f7693 gecko-integration-branch: central gecko-reviewers: bzbarsky
…et.addRule and CSSStyleSheet.removeRule. r=bzbarsky It's not worth dying on this hill. Both Blink and WebKit pass the tests. (Well, WebKit actually fails one of the latest ones I wrote, cssRules and rules are not the same JS object, WebKit returns a new rule list. I'll file) Spec PR in w3c/csswg-drafts#3900. Differential Revision: https://phabricator.services.mozilla.com/D30348 UltraBlame original commit: a93ed2a80220b9ba15fb9b59ea79b5f1ee8f7693
…et.addRule and CSSStyleSheet.removeRule. r=bzbarsky It's not worth dying on this hill. Both Blink and WebKit pass the tests. (Well, WebKit actually fails one of the latest ones I wrote, cssRules and rules are not the same JS object, WebKit returns a new rule list. I'll file) Spec PR in w3c/csswg-drafts#3900. Differential Revision: https://phabricator.services.mozilla.com/D30348 UltraBlame original commit: a93ed2a80220b9ba15fb9b59ea79b5f1ee8f7693
…et.addRule and CSSStyleSheet.removeRule. r=bzbarsky It's not worth dying on this hill. Both Blink and WebKit pass the tests. (Well, WebKit actually fails one of the latest ones I wrote, cssRules and rules are not the same JS object, WebKit returns a new rule list. I'll file) Spec PR in w3c/csswg-drafts#3900. Differential Revision: https://phabricator.services.mozilla.com/D30348 UltraBlame original commit: a93ed2a80220b9ba15fb9b59ea79b5f1ee8f7693
…et.addRule and CSSStyleSheet.removeRule. r=bzbarsky Spec PR in w3c/csswg-drafts#3900.
…et.addRule and CSSStyleSheet.removeRule. r=bzbarsky It's not worth dying on this hill. Both Blink and WebKit pass the tests. (Well, WebKit actually fails one of the latest ones I wrote, cssRules and rules are not the same JS object, WebKit returns a new rule list. I'll file) Spec PR in w3c/csswg-drafts#3900. Differential Revision: https://phabricator.services.mozilla.com/D30348
Fixes #3814.