Created attachment 447653 [details] A video demonstrating the bug Hey Y'all, Just downloaded technology preview 137 to play with the new :has() selector. made this demo: https://codepen.io/fimion/pen/XWeamBQ the div surrounding the list should have a 2px solid red border. The css selector does show up in dev tools, and I can uncheck and then check the border rule, and it will then show up. I've included a video. Please let me know if you need any more information.
*** Bug 234559 has been marked as a duplicate of this bug. ***
Looks like a style sharing bug.
Created attachment 447804 [details] Patch
Committed r287362 (245504@main): <https://commits.webkit.org/245504@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 447804 [details].
<rdar://problem/86817203>
*** Bug 234642 has been marked as a duplicate of this bug. ***
*** Bug 234732 has been marked as a duplicate of this bug. ***
Is there a way to subscribe to this bug and be alerted when the fix is pushed to the live version of Safari TP for testing?
The fix should be in the next STP. You can follow @WebKit in Twitter to get notified.
While I await the next STP, wanted to mention that the following selector worked but aspects of it were ignored. label:has(+ input[type="text"]) This would select _all_ labels followed by inputs, rather than only the ones that were followed by text inputs.
Just downloaded STP 138, this bug still exists. It has the same rendering error. Dev tools pick up on the styles correctly, but they are not rendered. https://codepen.io/fimion/pen/XWeamBQ
Unfortunately STP138 was based on a rather old revision (r286944) so is missing most if the more recent fixes.