Closed Bug 1648037 (css-nesting-1) Opened 6 years ago Closed 2 years ago

[meta] Implement CSS Nesting Module

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: 709922234, Assigned: emilio)

References

(Depends on 2 open bugs, Blocks 1 open bug, )

Details

(Keywords: dev-doc-needed, meta)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:79.0) Gecko/20100101 Firefox/79.0

Steps to reproduce:

https://drafts.csswg.org/css-nesting-1/

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Alias: css-nesting
Severity: -- → N/A
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3

Worth some exploration/prototyping.

Flags: needinfo?(emilio)
Version: 79 Branch → Trunk
Assignee: nobody → emilio
Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Depends on: 1811205
Keywords: dev-doc-needed

For what it's worth, the Chromium people already have an intent to ship this feature.

Sebastian

Keywords: meta
Summary: Implement css-nesting-1 → [meta] Implement CSS Nesting Module

CSS nesting in Safari tech preview 162 now also

Depends on: 1823886

Live with Chrome version 112.
https://caniuse.com/?search=css%20nest

Blocks: 1830109
Depends on: 1830134
Depends on: 1830369
Depends on: 1833151
Blocks: 1833536
Depends on: 1835062
Depends on: 1835066
Blocks: 1835068
Depends on: 1835069
Depends on: 1836873
Blocks: 1832973
Depends on: 1836955

Current status: layout.css.nesting.enabled is currently enabled by default in Nightly (bug 1835066) and can be enabled in Developer Edition; so if all goes well it should be in Firefox 115 release scheduled for July.

(In reply to Michal Čaplygin [:myf] from comment #7)

Current status: layout.css.nesting.enabled is currently enabled by default in Nightly (bug 1835066) and can be enabled in Developer Edition; so if all goes well it should be in Firefox 115 release scheduled for July.

There's a bunch of stuff that needs to be implemented including CSSOM support, relative selectors, etc. I'll try getting it into 115 but it's not necessarily confirmed.

Flags: needinfo?(emilio)
Depends on: 1838670
No longer blocks: 1835068
Depends on: 1835068
See Also: → 1838169
Depends on: 1839945
Depends on: 1839946
Depends on: 1840781
No longer depends on: 1836955

WebKit is adding a nesting limit of 128 in https://bugs.webkit.org/show_bug.cgi?id=258272 . It might be good to touch base to see if the spec should take this into consideration for webcompat's sake so sites know to expect such a limit.

Depends on: 1839547
Depends on: 1843349
Depends on: 1846251

Let's call this fixed. We can track nesting related fixes / enhancements elsewhere or as dependencies.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Depends on: 1859915
Depends on: 1859917
Depends on: 1864418
Depends on: 1878579
Alias: css-nesting
Alias: css-nesting-1
You need to log in before you can comment on or make changes to this bug.