diff --git a/css-pseudo-4/Overview.bs b/css-pseudo-4/Overview.bs index 7f9565404c28..fe885629c4cb 100644 --- a/css-pseudo-4/Overview.bs +++ b/css-pseudo-4/Overview.bs @@ -917,8 +917,10 @@ Shadows Text and Text Decorations A highlight pseudo-element - suppresses the normal drawing of any associated text - (and the text decorations that had been applied to that text). + suppresses the normal drawing of any associated text, + and the text decorations + (other than shadows) + that had been applied to that text. Instead the topmost active highlight overlay redraws that text (and those decorations) @@ -926,6 +928,11 @@ Text and Text Decorations using that highlight’s own 'color'. + Note: This means that unlike shadows, + line decorations and emphasis marks + won’t be obscured by any highlight overlay backgrounds + that are drawn for the associated text. + For this purpose, ''currentColor'' on a [=highlight pseudo-element=]’s 'color' property represents the 'color' of the next highlight pseudo-element layer below, @@ -959,7 +966,7 @@ Text and Text Decorations
For example, assuming the original text has an underline and a strike-through, that ''::selection'' applies an underline - and ''::target-text'' appplies both overline and strike-through, + and ''::target-text'' applies both overline and strike-through, the following are both conformant painting orders: