Created attachment 471070 [details] 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).
Created attachment 471071 [details] actual test case (ignore the other one, forgot to save -_-)
Created attachment 471098 [details] rendering in safari, firefox, chrome confirmed
<rdar://problem/126960335>
Wanted to report a similar bug, my repro: https://codepen.io/kizu/pen/abMbrya (in my case I was able to work around it by adding an extra `&, &` nesting level, not sure why it did work)
A valid CSS selector that doesn't match what it should seems pretty critical to me. 🫠