OpenRiver Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
codeinabox@programming.dev to CSS@programming.devEnglish · 22 days ago

true or false in CSS

blog.master.dev

external-link
message-square
0
link
fedilink
1
external-link

true or false in CSS

blog.master.dev

codeinabox@programming.dev to CSS@programming.devEnglish · 22 days ago
message-square
0
link
fedilink
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.
alert-triangle
You must log in or register to comment.

CSS@programming.dev

css@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !css@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 22 users / week
  • 38 users / month
  • 38 users / 6 months
  • 1 local subscriber
  • 902 subscribers
  • 60 Posts
  • 3 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • BE: 0.19.21
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org