Bug 256647

Summary: [css-nesting] Serialize properties directly in parent group rule only (for the first nested style rule)
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Matthieu Dubet
Reported 2023-05-11 08:03:46 PDT
Orphaned properties in group rules are implicitly added to a style rule with '&' as selector ; this implicit rule should not be serialized. foo { @media screen { color: green; } } is implemented as foo { @media screen { & { color: green; } } } but this should not appear in the CSS OM serialization
Attachments
Radar WebKit Bug Importer
Comment 1 2023-05-11 08:04:15 PDT
Matthieu Dubet
Comment 2 2023-05-11 08:15:01 PDT
EWS
Comment 3 2023-05-12 02:46:00 PDT
Committed 264003@main (e07871e21ea8): <https://commits.webkit.org/264003@main> Reviewed commits have been landed. Closing PR #13758 and removing active labels.
EWS
Comment 4 2023-05-18 16:09:27 PDT
Committed 259548.767@safari-7615-branch (168b349a71f0): <https://commits.webkit.org/259548.767@safari-7615-branch> Reviewed commits have been landed. Closing PR #603 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.