DEV Community

Discussion on: CSS :empty Selector

Collapse
 
link2twenty profile image
Andrew Bone

I love seeing little known features like this getting some spotlight! It's probably worth noting when the level 4 selectors roll out white space will be included as empty πŸ™‚.

The :empty pseudo-class represents an element that has no children except, optionally, document white space characters.

drafts.csswg.org/selectors-4/#the-...

Collapse
 
samanthaming profile image
Samantha Ming

Oh crazy! That’s a game changer! Let me add that to my notes, thank you for sharing πŸ˜ŠπŸ‘πŸ‘