Skip to content

[css-pseudo] no decoration propagation on highlights (closes #6829) #7221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 10, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions css-pseudo-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,23 @@ Text and Text Decorations</h4>
</div>
</div>

While the element’s own
<a href="https://www.w3.org/TR/css-text-decor/#line-decoration">line decorations</a>
are propagated from
containing <a spec=css-text-decor>decorating boxes</a>
as usual,
decorations introduced by [=highlight pseudo-elements=]
apply only to the text
directly associated with the [=originating element=]
(or intervening [=pseudo-element=] such as ''::first-line'' or ''::first-letter'').

Note: Because highlight decorations
are propagated through inheritance,
not through the box tree,
they can be declared on the root element
and still reliably decorate out-of-flow descendants,
which is not the case for the element’s own decorations.

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

Expand Down