File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -989,6 +989,23 @@ Text and Text Decorations</h4>
989
989
</div>
990
990
</div>
991
991
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
+
992
1009
<h4 id="highlight-replaced">
993
1010
Replaced Elements</h4>
994
1011
You can’t perform that action at this time.
0 commit comments