Skip to content

Commit 7fca93c

Browse files
committed
[css-pseudo-4] Clarify that base element text decorations lose their colors to pseudo-element's 'color' when it is specified. #2850
1 parent 371a3ca commit 7fca93c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

css-pseudo-4/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,13 @@ Painting the Highlight</h3>
637637
over the text’s original decorations
638638
and are all drawn, in their own colors.
639639

640+
Note: The element’s own text decorations
641+
(both <a href="https://www.w3.org/TR/css-text-decor/#line-decoration">line decorations</a>
642+
and <a href="https://www.w3.org/TR/css-text-decor/#emphasis-marks">emphasis marks</a>)
643+
are thus drawn in the pseudo-element’s own 'color'
644+
when that is not ''currentColor'',
645+
regardless of their original color or fill specifications.
646+
640647
Issue: What should happen with text shadows?
641648
Drawing them in their original color is disconcerting if that color is not a shade of gray.
642649
Maybe if the overlay has a background, suppress any text shadows below it?

0 commit comments

Comments
 (0)