programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
codeinabox to CSSEnglish · 8 days ago

Algorithmic hover states with contrast-color()

daverupert.com

external-link
message-square
0
link
fedilink
5
external-link

Algorithmic hover states with contrast-color()

daverupert.com

codeinabox to CSSEnglish · 8 days ago
message-square
0
link
fedilink
Firefox 146 added support for contrast-color() joining Safari 26 in the First Implementor’s Club. For those unfamiliar, contrast-color() is a new CSS function that will take a as input and returns either white or black depending on which has the most contrast.
alert-triangle
You must log in or # to comment.

CSS

css

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: [email protected]
Visibility: Public
globe

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

  • 10 users / day
  • 11 users / week
  • 53 users / month
  • 159 users / 6 months
  • 227 local subscribers
  • 680 subscribers
  • 157 Posts
  • 112 Comments
  • Modlog
  • mods:
  • Ategon
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org