Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CSS Highlight Inheritance #22218

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

bramus
Copy link
Contributor

@bramus bramus commented Feb 13, 2024

(馃憢 Hi, Chrome DevRel here)

With CSS Highlight Inheritance, the CSS Highlight pseudo classes inherit their properties through the pseudo highlight chain, rather than the element chain.

This applies to all Highlight Pseudo Elements: ::selection, ::target-text, ::spelling-error, and ::grammar-error.

Spec: https://drafts.csswg.org/css-pseudo-4/#highlight-cascade
CSSWG Resolution: w3c/csswg-drafts#2474 (comment)

This PR adds this information as a separate block, because in Chrome this wasn鈥檛 always the case.

@github-actions github-actions bot added the data:css 馃帹 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Feb 13, 2024
@bramus
Copy link
Contributor Author

bramus commented Feb 19, 2024

Feature in Chrome was put on hold. Marking PR as draft.

@bramus bramus marked this pull request as draft February 19, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css 馃帹 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant