Csswg-drafts: [css-4-selectors] Still no :Parent selector?

Created on 16 Jan 2017  路  4Comments  路  Source: w3c/csswg-drafts

cmon people we want to stop using js for this simple query

Of course :has() is troublesome

Most helpful comment

See the :has() pseudo-class.

Sebastian

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings