[css-nesting] Why does CSSStyleRule not inherit from CSSGroupingRule? · Issue #8940 · w3c/csswg-drafts (original) (raw)

Comments

@emilio

https://drafts.csswg.org/css-nesting/#cssom-style has:

partial interface CSSStyleRule { [SameObject] readonly attribute CSSRuleList cssRules; unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0); undefined deleteRule(unsigned long index); };

Why doing that rather than inheriting from CSSGroupingRule, which gives you that?

cc @tabatkins @sesse

@emilio

@mdubet

@tabatkins

I honestly just didn't think about changing the inheritance tree? It feels like doing that to such an old rule might have compat implications, but then again CSSMediaRule is just as old and we changed it. So yeah, probably we can just do it this way.

@css-meeting-bot

The CSS Working Group just discussed [css-nesting] Why does CSSStyleRule not inherit from CSSGroupingRule?, and agreed to the following:

tabatkins added a commit that referenced this issue

Jul 14, 2023

@tabatkins

…gRule, so remove the now extraneous definitions from Nesting.

moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this issue

Jul 31, 2023

@emilio @moz-wptsync-bot

As per w3c/csswg-drafts#8940.

I didn't do this in bug 1837638 because that's what the spec said at the time, that's what other browsers did, and specially because if we did this we had no way of runtime-disable nesting during development or if things went south.

This means that we can't keep the nesting pref in 118, but that seems fine (it's already enabled everywhere in 117).

Differential Revision: https://phabricator.services.mozilla.com/D184930

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1846251 gecko-commit: 085c31f150d35371620bb3f884c9f20b396dbe08 gecko-reviewers: peterv, devtools-reviewers

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue

Aug 1, 2023

@emilio

…v,devtools-reviewers

As per w3c/csswg-drafts#8940.

I didn't do this in bug 1837638 because that's what the spec said at the time, that's what other browsers did, and specially because if we did this we had no way of runtime-disable nesting during development or if things went south.

This means that we can't keep the nesting pref in 118, but that seems fine (it's already enabled everywhere in 117).

Differential Revision: https://phabricator.services.mozilla.com/D184930

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue

Aug 1, 2023

@emilio

…v,devtools-reviewers

As per w3c/csswg-drafts#8940.

I didn't do this in bug 1837638 because that's what the spec said at the time, that's what other browsers did, and specially because if we did this we had no way of runtime-disable nesting during development or if things went south.

This means that we can't keep the nesting pref in 118, but that seems fine (it's already enabled everywhere in 117).

Differential Revision: https://phabricator.services.mozilla.com/D184930

moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this issue

Aug 1, 2023

@emilio @moz-wptsync-bot

As per w3c/csswg-drafts#8940.

I didn't do this in bug 1837638 because that's what the spec said at the time, that's what other browsers did, and specially because if we did this we had no way of runtime-disable nesting during development or if things went south.

This means that we can't keep the nesting pref in 118, but that seems fine (it's already enabled everywhere in 117).

Differential Revision: https://phabricator.services.mozilla.com/D184930

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1846251 gecko-commit: 62534bac923526d52c2d5f377d00bdf2d34b9a05 gecko-reviewers: peterv, devtools-reviewers

moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this issue

Aug 1, 2023

@emilio @moz-wptsync-bot

As per w3c/csswg-drafts#8940.

I didn't do this in bug 1837638 because that's what the spec said at the time, that's what other browsers did, and specially because if we did this we had no way of runtime-disable nesting during development or if things went south.

This means that we can't keep the nesting pref in 118, but that seems fine (it's already enabled everywhere in 117).

Differential Revision: https://phabricator.services.mozilla.com/D184930

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1846251 gecko-commit: 62534bac923526d52c2d5f377d00bdf2d34b9a05 gecko-reviewers: peterv, devtools-reviewers

ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this issue

Aug 4, 2023

@emilio

…v,devtools-reviewers

As per w3c/csswg-drafts#8940.

I didn't do this in bug 1837638 because that's what the spec said at the time, that's what other browsers did, and specially because if we did this we had no way of runtime-disable nesting during development or if things went south.

This means that we can't keep the nesting pref in 118, but that seems fine (it's already enabled everywhere in 117).

Differential Revision: https://phabricator.services.mozilla.com/D184930

ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this issue

Aug 4, 2023

@emilio

…v,devtools-reviewers

As per w3c/csswg-drafts#8940.

I didn't do this in bug 1837638 because that's what the spec said at the time, that's what other browsers did, and specially because if we did this we had no way of runtime-disable nesting during development or if things went south.

This means that we can't keep the nesting pref in 118, but that seems fine (it's already enabled everywhere in 117).

Differential Revision: https://phabricator.services.mozilla.com/D184930

@emilio

This has tests now, and spec text, so closing.

FWIW Gecko shipped this without issues.

Lightning00Blade pushed a commit to Lightning00Blade/wpt that referenced this issue

Dec 11, 2023

@emilio @Lightning00Blade

As per w3c/csswg-drafts#8940.

I didn't do this in bug 1837638 because that's what the spec said at the time, that's what other browsers did, and specially because if we did this we had no way of runtime-disable nesting during development or if things went south.

This means that we can't keep the nesting pref in 118, but that seems fine (it's already enabled everywhere in 117).

Differential Revision: https://phabricator.services.mozilla.com/D184930

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1846251 gecko-commit: 62534bac923526d52c2d5f377d00bdf2d34b9a05 gecko-reviewers: peterv, devtools-reviewers

Loirooriol pushed a commit to Loirooriol/stylo that referenced this issue

Mar 10, 2024

@emilio

…v,devtools-reviewers

As per w3c/csswg-drafts#8940.

I didn't do this in bug 1837638 because that's what the spec said at the time, that's what other browsers did, and specially because if we did this we had no way of runtime-disable nesting during development or if things went south.

This means that we can't keep the nesting pref in 118, but that seems fine (it's already enabled everywhere in 117).

Differential Revision: https://phabricator.services.mozilla.com/D184930

Loirooriol pushed a commit to Loirooriol/stylo that referenced this issue

Mar 10, 2024

@emilio

…v,devtools-reviewers

As per w3c/csswg-drafts#8940.

I didn't do this in bug 1837638 because that's what the spec said at the time, that's what other browsers did, and specially because if we did this we had no way of runtime-disable nesting during development or if things went south.

This means that we can't keep the nesting pref in 118, but that seems fine (it's already enabled everywhere in 117).

Differential Revision: https://phabricator.services.mozilla.com/D184930