programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
codeinabox to CSSEnglish · 23 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 · 23 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.

  • 5 users / day
  • 20 users / week
  • 58 users / month
  • 172 users / 6 months
  • 230 local subscribers
  • 693 subscribers
  • 163 Posts
  • 118 Comments
  • Modlog
  • mods:
  • Ategon
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org