Skip to content

Commit

Permalink
[css-pseudo-4] Forbid UA tweaks to author colors #6853
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Oct 15, 2024
1 parent 597f5a8 commit 1214c57
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions css-pseudo-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,17 @@ Styling Highlights</h3>
into a single shape.
-->

If, for a given [=highlight pseudo-element=],
there are colors specified in the [=author origin=],
those colors must be respected as specified;
i.e. the UA must not apply any extra processing
(such as using semi-transparent washes).
However if there are no colors in the [=author origin=],
the UA may apply additional color processing.

Note: This is to ensure that color contrast is preserved
across all user agents interpreting a given author stylesheet.

Vendor-prefixed properties such as '-webkit-text-fill-color'
are not applicable to the [=highlight pseudo-elements=].
<!-- https://github.com/w3c/csswg-drafts/issues/7580 -->
Expand Down

0 comments on commit 1214c57

Please sign in to comment.