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 all 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
10 changes: 10 additions & 0 deletions css-pseudo-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,16 @@ Text and Text Decorations</h4>
</div>
</div>

<a href="https://www.w3.org/TR/css-text-decor/#line-decoration">Line decorations</a> introduced by [=highlight pseudo-elements=]
apply only to the text associated with their [=originating element=],
and are not propagated to descendants
except via property [=inheritance=] (as described [[#highlight-cascade|above]]).

Note: Unlike the originating element’s own decorations,
decorations declared on a highlight pseudo-element
propagate to [=out-of-flow|out-of-flow elements=] and [=inline blocks=],
with thickness and position varying between descendants.

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

Expand Down