Re: [csswg-drafts] [css-highlight-api][css-contain] static ranges and css-contain (#4598)

Discussed this with some other Edge folks.

It seems like the most straightforward thing is to not paint a range that crosses the boundary of a contained element, basically treating it as invalid.  This could just be included as part of the invalidation in [Range Updating and Invalidation](https://drafts.csswg.org/css-highlight-api-1/#range-invalidation) where it would be another condition for which "the User Agent must ignore that range".

I expect that authors will generally not have a need to create a highlight that crosses a CSS contain boundary, but an author that does need to do this could use a `Range` instead of a `StaticRange`.

-- 
GitHub Notification of comment by dandclark
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4598#issuecomment-748281485 using your GitHub account


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

Received on Friday, 18 December 2020 19:34:20 UTC