Skip to content

Commit 1214c57

Browse files
committed
[css-pseudo-4] Forbid UA tweaks to author colors #6853
1 parent 597f5a8 commit 1214c57

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

css-pseudo-4/Overview.bs

+11
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,17 @@ Styling Highlights</h3>
952952
into a single shape.
953953
-->
954954

955+
If, for a given [=highlight pseudo-element=],
956+
there are colors specified in the [=author origin=],
957+
those colors must be respected as specified;
958+
i.e. the UA must not apply any extra processing
959+
(such as using semi-transparent washes).
960+
However if there are no colors in the [=author origin=],
961+
the UA may apply additional color processing.
962+
963+
Note: This is to ensure that color contrast is preserved
964+
across all user agents interpreting a given author stylesheet.
965+
955966
Vendor-prefixed properties such as '-webkit-text-fill-color'
956967
are not applicable to the [=highlight pseudo-elements=].
957968
<!-- https://github.com/w3c/csswg-drafts/issues/7580 -->

0 commit comments

Comments
 (0)