Skip to content

[css-contain-2] Clarify that flat-tree descendants of content-visibility skipped elements include pseudos #7425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vmpstr opened this issue Jun 28, 2022 · 1 comment
Labels
css-contain-2 Current Work

Comments

@vmpstr
Copy link
Member

vmpstr commented Jun 28, 2022

The content-visibility text that talks about skipping rendering, says that contents are not painted, which is

the flat tree descendants of the element, including both text and elements, or the replaced content of a replaced element

The flat tree definition doesn't mention whether it includes pseudo elements, and my understanding is that it doesn't.

We should amend the content-visibility spec to explicitly say that contents of an element include, among other things, pseudo elements originating from the element.

/cc @tabatkins

@vmpstr vmpstr added the css-contain-2 Current Work label Jun 28, 2022
@tabatkins
Copy link
Member

c-v should definitely hide pseudos, like any other child. The only question I have is if it's best to handle this as a one-off in the c-v spec, or if we should add some more general definitions (in Display?) that specify that pseudos are in the flattened element tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-contain-2 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants