Bug 254432 - [css-nesting] Implement CSS OM read-only (serialize CSS rule) with nesting
Summary: [css-nesting] Implement CSS OM read-only (serialize CSS rule) with nesting
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-24 09:44 PDT by Matthieu Dubet
Modified: 2023-03-27 15:12 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Dubet 2023-03-24 09:44:10 PDT
https://drafts.csswg.org/cssom/#serialize-a-css-rule

The serialization of "implicit" nested rule inside group rule such as:

 #foobar { @media { color:black; } } 

which is implicitly

#foobar { @media { & { color:black; } } }

is not precisely specified, but we should try to serialize the minimal equivalent
Comment 1 Radar WebKit Bug Importer 2023-03-24 09:44:34 PDT
<rdar://problem/107190613>
Comment 2 Matthieu Dubet 2023-03-27 09:15:28 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12008
Comment 3 EWS 2023-03-27 15:12:30 PDT
Committed 262177@main (f4dfe341bdcc): <https://commits.webkit.org/262177@main>

Reviewed commits have been landed. Closing PR #12008 and removing active labels.