[Webkit-unassigned] [Bug 273125] New: :has(:is(...)) / :has(:where(...)) is broken when there are multiple :has() rules on the same selector

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 23 09:26:44 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=273125

            Bug ID: 273125
           Summary: :has(:is(...)) / :has(:where(...)) is broken when
                    there are multiple :has() rules on the same selector
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: All
                OS: All
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: benoit.rouleau at icloud.com

Created attachment 471070

  --> https://bugs.webkit.org/attachment.cgi?id=471070&action=review

test case

Maybe related to bug #253944

See the attached test case. The `.container` element should be blue (like in Chrome and Firefox), but it's red in all the versions of Safari that I tested it in. Notice that if you remove the first rule (the `.card:has(button)` one), then it is blue as expected.

Marked this as critical because this has the potential to break whole features that rely on `:has()` being supported (which it now is in all the big browsers).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240423/ac950095/attachment.htm>


More information about the webkit-unassigned mailing list