Bug 250042

Summary: [css-nesting] Implement nesting at-rules inside style rule
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: graouts, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matthieu Dubet 2023-01-03 13:07:43 PST
https://drafts.csswg.org/css-nesting/#conditionals

The specification allows nested group rules inside of style rules: any at-rule whose body contains style rules can be nested inside of a style rule as well.

We don't support the @scope at-rules feature yet, but we should implement nesting support for @media, @layer, @container and @supports.
Comment 1 Matthieu Dubet 2023-01-03 13:08:16 PST
rdar://103147312
Comment 2 Matthieu Dubet 2023-01-03 13:31:21 PST
Pull request: https://github.com/WebKit/WebKit/pull/8162
Comment 3 EWS 2023-01-06 14:14:31 PST
Committed 258560@main (fb1992149cc1): <https://commits.webkit.org/258560@main>

Reviewed commits have been landed. Closing PR #8162 and removing active labels.
Comment 4 Antoine Quint 2023-01-07 12:53:04 PST
I believe this made fast/css-generated-content/noscript-pseudo-anim-crash.html crash:

https://results.webkit.org/?suite=layout-tests&test=fast%2Fcss-generated-content%2Fnoscript-pseudo-anim-crash.html