Skip to content

Commit 442b5de

Browse files
committed
fix implicit defaulting of ‘color’ at :root (w3c#6774)
1 parent 4e4fb90 commit 442b5de

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

css-pseudo-4/Overview.bs

+2-16
Original file line numberDiff line numberDiff line change
@@ -704,11 +704,8 @@ Styling Highlights</h3>
704704
like 'fill-color'
705705
must not be treated as highlight colors.
706706

707-
The 'color' property specifies the color of both the text
708-
and all line decorations (underline, overline, line-through)
709-
and emphasis marks ('text-emphasis')
710-
applied to the text
711-
by the <a>originating element</a> and its ancestors and descendants.
707+
If there is no [=cascaded value=] for 'color',
708+
the [=specified value=] is 'currentColor'.
712709

713710
<!-- Add this back if for some reason someone wants to implement 'outline'?
714711
The outline, if supported, must be drawn
@@ -740,17 +737,6 @@ Default UA Styles</h3>
740737
and doing so is recommended
741738
for ''::selection'' and ''::target-text''.
742739

743-
Otherwise,
744-
the default highlight colors for that highlight must be
745-
'currentColor' (<em>not</em> 'initial' or 'inherit')
746-
and 'transparent' respectively.
747-
In other words,
748-
when the UA doesn’t define default highlight colors
749-
for a given highlight,
750-
highlighted content retains the 'color'
751-
that would otherwise have been used
752-
without that highlight.
753-
754740
Note: the painting behavior of highlight colors
755741
means that default highlight colors
756742
can't be expressed in terms of 'color' and 'background-color'

0 commit comments

Comments
 (0)