blog.master.dev

true or false in CSS

via Vinay Dabral • • 0 comments
3
CSS doesn’t have a boolean type, but it does have the true and false keywords. Register a custom property that only accepts them, flip it with :has(), and container style queries turn messy :checked selector combinations into readable conditions. Read full article
Join the conversation! Log in