What is Nostr?
Ana Tudor 🐯 /
npub1wzr…2nuu
2024-03-12 09:18:47

Ana Tudor 🐯 on Nostr: #tinyCSStip One thing that has always annoyed me about `:empty` is that it doesn't ...

#tinyCSStip One thing that has always annoyed me about `:empty` is that it doesn't work for elements that have text content, but no element children.

`:has()` fixes this problem.

`:not(:has(*))` selects elements that don't have element children, even if they have text content.

#CSS #code #coding #frontend #webDev #webDevelopment

Author Public Key
npub1wzrcns4nynt3aegu8qvxyffxu8k6rahtmx5ll6ap7z24f036y43q0u2nuu