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

vmpstr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-contain-2] Clarify that flat-tree descendants of content-visibility skipped elements include pseudos ==
The content-visibility text that talks about skipping rendering, says that [contents](https://www.w3.org/TR/css-contain-2/#element-contents) are not painted, which is

> the [flat tree](https://drafts.csswg.org/css-scoping-1/#flat-tree) descendants of the element, including both text and elements, or the replaced content of a [replaced element](https://www.w3.org/TR/css-display-3/#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 


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7425 using your GitHub account


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

Received on Tuesday, 28 June 2022 15:00:03 UTC