[Webkit-unassigned] [Bug 234733] New: [:has() pseudo-class] Not matching elements it should

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 28 14:42:07 PST 2021


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

            Bug ID: 234733
           Summary: [:has() pseudo-class] Not matching elements it should
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Intel)
                OS: macOS 11
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: brandon at dreamthinkbuild.com

In my testing of the `:has()` pseudo-class, I discovered a few cases where `:has()` is not matching elements that it should.

Check example #'s 9 and 10 at this example URL (https://codepen.io/brandonmcconnell/pen/a93e58403165e721481e7fc4fe3fb676?editors=1100):
 * Example 9
 * Example 10

In both of those examples, you will see under "Should be" the squares which should be filled (by matching the selector under "Implementation") which are also not being filled in the actual render, under "Actually rendered".

Example 9 selector: `y:has(+ x, + * + x, + * + * + x)`
Example 10 selector: `y:has(~ * + * + x)`

-- 
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/58a56a30/attachment.htm>


More information about the webkit-unassigned mailing list