Post

✨ :only-child now matches elements with no parent! The :only-child selector has been updated — it can now match elements that have no parent at all, not just sole children. A subtle but useful spec alignment across all major browsers. Learn more 👇 developer.mozilla.org/en-US/docs/...

1 repost27 likes

'only-child now matches elements with no parent!' is an interesting way to start a post. Ha ha.

<:root:only-child:first-child:last-child:only-of-type> <:first-child:empty/> <:not(:empty)><:only-child/></> <:last-child:empty> <!-- --></> </>