Bug 249914 - Make :has() unforgiving
Summary: Make :has() unforgiving
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: All All
: P2 Normal
Assignee: Tim Nguyen (:ntim)
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-12-27 14:48 PST by Michał Gołębiowski-Owczarek
Modified: 2023-01-10 02:50 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Gołębiowski-Owczarek 2022-12-27 14:48:19 PST
Per the CSS WG resolution:
https://github.com/w3c/csswg-drafts/issues/7676#issuecomment-1341347244
`:has()` should be unforgiving now.

It has already been fixed in Chrome:
https://bugs.chromium.org/p/chromium/issues/detail?id=1399744

Firefox hasn't implemented `:has()` yet.
Comment 2 Radar WebKit Bug Importer 2022-12-27 18:07:28 PST
<rdar://problem/103733208>
Comment 3 Tim Nguyen (:ntim) 2023-01-09 13:47:05 PST
(In reply to Karl Dubost from comment #1)
> Needs probably to review these previous bugs too. 
> https://bugs.webkit.org/buglist.
> cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOP
> ENED&list_id=8864308&query_format=advanced&short_desc=has%20invalidation&shor
> t_desc_type=allwordssubstr

These bugs are unrelated, this is about parsing, the other ones are about style matching/invalidation
Comment 4 Tim Nguyen (:ntim) 2023-01-09 19:51:45 PST
Pull request: https://github.com/WebKit/WebKit/pull/8428
Comment 5 EWS 2023-01-10 02:50:21 PST
Committed 258712@main (2eca427ede13): <https://commits.webkit.org/258712@main>

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