Skip to content

Commit 4cd6d7c

Browse files
committed
[css-pseudo-4] Clarify that fallback color of a highlight pseudo could come from ::first-line etc. #4625
1 parent 4316f91 commit 4cd6d7c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

css-pseudo-4/Overview.bs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,9 @@ Painting the Highlight</h3>
696696
using its own 'color',
697697
with ''currentColor'' on its 'color' property representing the 'color'
698698
of the next <a>highlight pseudo-element</a> layer below,
699-
falling back finally to that of the <a>originating element</a>
700-
(the colors that would otherwise be used).
699+
falling back finally to the colors that would otherwise have been used
700+
(those applied by the [=originating element=] or
701+
an intervening [=pseudo-element=] such as ''::first-line'' or ''::first-letter'').
701702
Any text decorations introduced by each <a>highlight pseudo-element</a>
702703
are stacked in the same order as their backgrounds
703704
over the text’s original decorations
@@ -980,6 +981,10 @@ Changes</h2>
980981
(<a href="https://github.com/w3c/csswg-drafts/issues/2998">Issue 2998</a>)
981982
<li>Allowed highlight overlay of inline-level boxes to extend to the line box edges.
982983
(<a href="https://github.com/w3c/csswg-drafts/issues/5395">Issue 5395</a>)
984+
<li>Clarify that ''currentColor'' on a [=highlight pseudo-element=]
985+
uses the color that would be used if the text were not “highlighted”,
986+
even if that color was provided by a pseudo-element like ''::first-line''.
987+
(<a href="https://github.com/w3c/csswg-drafts/issues/4625">Issue 4625</a>)
983988
</ul>
984989

985990
Changes since the <a href="https://www.w3.org/TR/2016/WD-css-pseudo-4-20160607/">7 June 2016 Working Draft</a> include:

0 commit comments

Comments
 (0)