Re: [csswg-drafts] [cssom-view] Proposal: add Element.isRendered() to detect if element is rendered. (#6850)

After some more discussion here, would you support `isRendered` being something like "returns true if the element is [rendered](https://html.spec.whatwg.org/#being-rendered) and not [skipped](https://www.w3.org/TR/css-contain-2/#skips-its-contents)"

The problem is that we would really like this function to return false for `content-visibility: hidden` subtrees. But it's challenging to amend the being-rendered spec to say that elements in `content-visibility: hidden` subtrees are not rendered, since it's not entirely true. They _may_ not be rendered, but the rendering will be updated for any kind of queries that require the rendering to be updated. 

Would it help if the name is not `isRendered` but something else (although exactly what I don't know)

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


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

Received on Friday, 3 December 2021 04:17:55 UTC