Loading your feed…
A lot of UI code we write in JS now has native CSS answers:
:has(): style a parent based on its children (form:has(:invalid)).text-wrap: balance: no more awkward one-word last lines in headings.@starting-style: animate elements as they appear.All are in current Chrome, Edge, Safari and Firefox. Check caniuse before shipping to older browsers.
Answers, step-by-step code solutions, and community discussions are reserved for verified members. Create your free account in 30 seconds to unlock answers, ask follow-up questions, and connect with peers.