Skip to content

Commit 19cd772

Browse files
committed
[css-pseudo] no decoration propagation on highlights (closes #6829)
1 parent 06f804e commit 19cd772

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

css-pseudo-4/Overview.bs

+17
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,23 @@ Text and Text Decorations</h4>
989989
</div>
990990
</div>
991991

992+
While the element’s own
993+
<a href="https://www.w3.org/TR/css-text-decor/#line-decoration">line decorations</a>
994+
are propagated from
995+
containing <a spec=css-text-decor>decorating boxes</a>
996+
as usual,
997+
decorations introduced by [=highlight pseudo-elements=]
998+
apply only to the text
999+
directly associated with the [=originating element=]
1000+
(or intervening [=pseudo-element=] such as ''::first-line'' or ''::first-letter'').
1001+
1002+
Note: Because highlight decorations
1003+
are propagated through inheritance,
1004+
not through the box tree,
1005+
they can be declared on the root element
1006+
and still reliably decorate out-of-flow descendants,
1007+
which is not the case for non-highlight decorations.
1008+
9921009
<h4 id="highlight-replaced">
9931010
Replaced Elements</h4>
9941011

0 commit comments

Comments
 (0)