Bug 258688

Summary: [css-nesting] Keep invalid selector with nesting selector in forgiving selector list
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   

Description Matthieu Dubet 2023-06-29 11:42:25 PDT
From the spec:
"If a <forgiving-selector-list> has an item that contains the nesting selector but is invalid, that item is preserved exactly as-is rather than being discarded. (This does not change the matching behavior of the selector—an invalid selector still fails to match anything—just the serialization of the selector.)"

This is tested in WPT : https://wpt.fyi/results/css/css-nesting/nest-containing-forgiving.html?label=experimental&label=master&aligned
Comment 1 Radar WebKit Bug Importer 2023-07-06 11:43:17 PDT
<rdar://problem/111861948>
Comment 2 Matthieu Dubet 2023-08-02 06:24:07 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16314
Comment 3 EWS 2023-08-10 07:59:36 PDT
Committed 266762@main (7f6950788ad1): <https://commits.webkit.org/266762@main>

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