[csswg-drafts] Pull Request: [css-highlight-api-1] Don't paint ranges positioned in a different window #6417

dandclark has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [css-highlight-api-1] Don't paint ranges positioned in a different window #6417 ==
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](https://dom.spec.whatwg.org/#in-a-document-tree)" check excluded ranges positioned inside a shadow tree, which is probably not what we want. Using the [shadow-including root](https://dom.spec.whatwg.org/#concept-shadow-including-root) instead fixes this.

Closes #6417.

See https://github.com/w3c/csswg-drafts/pull/6499


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 5 August 2021 23:15:13 UTC