- From: Fernando Fiori via GitHub <sysbot+gh@w3.org>
- Date: Tue, 11 Feb 2025 23:15:40 +0000
- To: public-css-archive@w3.org
ffiori has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-highlight-api] Should Highlights affect shadow DOM text if their ranges' endpoints are in the light DOM? == It's [not specified](https://drafts.csswg.org/css-highlight-api-1/) whether a Highlight which has a range with endpoints in the light DOM surrounding some text in the shadow DOM should affect it or not. For example, let's say we set a Highlight with a range like the brackets below, where only the line in the middle is in the shadow DOM: ``` [0123456789 This line is in the shadow DOM 01234]56789 ``` Live example here https://jsfiddle.net/ym78b5xk/ This would *highlight* text from first and third lines only, leaving the second line as it was before setting the Highlight. This behavior makes sense if we think that the range *is* in the light DOM, so it doesn't have information from the shadow DOM. The same behavior is observed from `Range.toString()`, where calling it on a range like the above returns text from the light DOM only. Regardless of the decision taken upon this issue, the spec should get an update on it so there's no ambiguity about it. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11699 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 11 February 2025 23:15:41 UTC