8000 [cssom] Define legacy CSSStyleSheet methods as implemented in Blink. by emilio · Pull Request #3900 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

Conversation

emilio
Copy link
Collaborator
@emilio emilio commented May 8, 2019

Fixes #3814.

@emilio emilio requested a review from tabatkins May 8, 2019 11:03
@emilio emilio force-pushed the CSSStyleSheet-sadness branch from 307cccc to ffe6f2b Compare May 8, 2019 11:18
@emilio emilio changed the title [cssom] Define legacy CSSStyleSheet methods as implemented in WebKit. [cssom] Define legacy CSSStyleSheet methods as implemented in Blink. May 8, 2019
@emilio
Copy link
Collaborator Author
emilio commented May 8, 2019

@emilio emilio force-pushed the CSSStyleSheet-sadness branch 2 times, most recently from 4128217 to 5bdfa67 Compare May 8, 2019 22:54
@emilio emilio requested a review from fantasai May 8, 2019 23:31
void deleteRule(unsigned long index);

[SameObject] readonly attribute CSSRuleList rules;
long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
Copy link
Collaborator
@domenic domenic May 9, 2019

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.

Copy link
Member
@tabatkins tabatkins left a 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.

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 9, 2019
…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
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request May 9, 2019
…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
@emilio emilio force-pushed the CSSStyleSheet-sadness branch from 5bdfa67 to ed0ac45 Compare May 9, 2019 16:23
@emilio
Copy link
Collaborator Author
emilio commented May 9, 2019

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.

@emilio emilio force-pushed the CSSStyleSheet-sadness branch from ed0ac45 to 0f10d5e Compare May 9, 2019 16:26
@emilio emilio merged commit c1a685d into w3c:master May 9, 2019
@emilio emilio deleted the CSSStyleSheet-sadness branch May 9, 2019 16:29
moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this pull request May 16, 2019
… 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
moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this pull request May 16, 2019
… 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
marcoscaceres pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 23, 2019
… 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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 4, 2019
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 4, 2019
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 4, 2019
…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
hawkeye116477 added a commit to hawkeye116477/Waterfox that referenced this pull request Dec 28, 2019
…et.addRule and CSSStyleSheet.removeRule. r=bzbarsky

Spec PR in w3c/csswg-drafts#3900.
bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cssom] Figure out what to do with non-standard CSSStyleSheet methods in WebKit / Blink
4 participants
0