[Webkit-unassigned] [Bug 234732] [:has() pseudo-class] Styles matching non-matching elements on load

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 28 15:07:50 PST 2021


Bramus <bramus at bram.us> changed:

           What    |Removed                     |Added
                 CC|                            |bramus at bram.us

--- Comment #2 from Bramus <bramus at bram.us> ---
On Twitter I saw a demo pass by that showed the same faulty behavior: https://codepen.io/ZoranJambor/pen/GRMyzvy

a:has(span) {
  background: rebeccapurple;
  color: #fff;

Both `<a>` elements get styled, even though the 2nd `<a>` element does not contain a `<span>`.

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/20211228/c207badf/attachment-0001.htm>

More information about the webkit-unassigned mailing list