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

> Know when an element is visible (e.g. via puppeteer or similar frameworks (also see here))

Here is some [puppeteer code](https://github.com/puppeteer/puppeteer/blob/bbfad6802c1eb8b5b43e568334ba4212698da917/src/common/helper.ts#L271-L281) and some [playwright code](https://github.com/microsoft/playwright/blob/04aa38a6639452df1a34cd7c186ecc2a0f706c40/packages/playwright-core/src/server/injected/selectorEvaluator.ts#L656-L665) that could use this feature to work properly with content-visibility, as well as a [playwright issue](https://github.com/microsoft/playwright/issues/10674) where someone ran into this shortcoming due to [content-visibility in `<details>`](https://github.com/whatwg/html/pull/6466).

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


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

Received on Wednesday, 8 December 2021 23:19:53 UTC