Skip to content

Commit a520186

Browse files
committed
simplify normative text; elaborate note
1 parent b634007 commit a520186

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

css-pseudo-4/Overview.bs

+9-16
Original file line numberDiff line numberDiff line change
@@ -989,22 +989,15 @@ 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 the element’s own decorations.
992+
<a href="https://www.w3.org/TR/css-text-decor/#line-decoration">Line decorations</a> introduced by [=highlight pseudo-elements=]
993+
apply only to the text associated with their [=originating element=],
994+
and are not propagated to descendants
995+
except via property [=inheritance=] (as described [[#highlight-cascade|above]]).
996+
997+
Note: Unlike the element’s own decorations,
998+
decorations declared on the root element’s highlights
999+
propagate to [=out-of-flow|out-of-flow elements=] and [=inline blocks=],
1000+
with thickness and position varying between descendants.
10081001

10091002
<h4 id="highlight-replaced">
10101003
Replaced Elements</h4>

0 commit comments

Comments
 (0)