cmon people we want to stop using js for this simple query
Of course :has() is troublesome
See the :has()
pseudo-class.
Sebastian
:has
really looks good as it doesn't traverse the tree up. Unidirectional traversal is really a good design choice in CSS.
Looking for the day :has
reports green on http://caniuse.com/#search=%3Ahas
:has()
is equally as problematic, from a perf perspective, as "parent" selectors. This is why :has()
is marked as part of the static profile - it's explicitly not allowed in stylesheets.
Most helpful comment
See the
:has()
pseudo-class.Sebastian