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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-highlight-api-1] Don't paint ranges positioned in a different window #6417 #6499

Merged

Conversation

dandclark
Copy link
Contributor

Specify that when painting a document, the associated HighlightRegistry's ranges that are positioned in a different document are not painted.

Also, fix a bug: the "no longer in a document tree" check excluded ranges positioned inside a shadow tree, which is probably not what we want. Using the shadow-including root instead fixes this.

Closes #6417.

@sanketj sanketj merged commit 30c6f1b into w3c:main Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[css-highlight-api] Specifying behavior for Highlights involving multiple documents
2 participants