THE PENDING DRAFT

CSS Level 4 Selectors

April 4, 2015

Looks like some really helpful new things are coming to CSS. I especially like the proposed :has selector which i could have used a ton of times in the past. In combination with :nth-child or :not this will open up quite some possibilities for complex relational selectors and we won’t have to use complicated techniques like this quantity query.

The :has pseudo-selector allows you to select elements that have the passed in arguments as children. For example, to select all anchor links that have image elements as children

But there’s more than the :has selector and i recommend you read the full post about those new CSS Level 4 Selectors.

CSS Level 4 Selectors to Watch Out For

Leave your comment