Bug 258688 - [css-nesting] Keep invalid selector with nesting selector in forgiving selector list
Summary: [css-nesting] Keep invalid selector with nesting selector in forgiving select...
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-06-29 11:42 PDT by Matthieu Dubet
Modified: 2023-08-10 07:59 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-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.