whatwg / html

HTML Standard
https://html.spec.whatwg.org/multipage/
Other
8.03k stars 2.62k forks source link

HD link and visited colors #8477

Open argyleink opened 1 year ago

argyleink commented 1 year ago

this is regarding https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3

I'd like to see updated colors for the display-p3 space for :link and :visited

today:

:link { color: #0000EE; }
:visited { color: #551A8B; }

proposed addition via progressive enhancement:

@media (dynamic-range: high) {
  @supports (color: color(display-p3 0 0 0)) {
    :link { color: color(display-p3 .1 .4 1); }
    :visited { color: color(display-p3 .6 .2 1); }
  }
}

these changes can be previewed on the https://open-props.style website in the light theme on an HD display. the difference is not drastic. for example, the blue link color I propose above is this far away from the normal link color into the display-p3 space:

image

this color change proposal nudges the colors into the higher quality values on capable displays, just so slightly helping them stand out in terms of vibrance and ability to distinguish them from other blues on a page.

thoughts?

domenic commented 1 year ago

This seems like a pretty unnecessary change to me. The default styles varying based on what kind of monitor someone has does not seem like a good way for the web to work. And in general investing in changing default styles seems like a bad use of effort.