Re: [csswg-drafts] [css-view-transitions-1] Clarifications on stacking contexts (#8917)

> An example WPT test is [here](https://wpt.fyi/results/css/compositing/root-element-filter.html?label=experimental&label=master&aligned).
> 
> It tests that "a filter on the root element applies to its background" (which is why the background in this example should be white, not black). 

The test makes sense, and I agree that it's probably the desired behaviour, I'm just struggling to understand how the current spec text defines it.

>Since the background is lifted into the root group, the filters have to apply in that also. 

The root group, or the root element group? My read is that it is indeed the root group, which is an ancestor of the root element group that paints the filter.

>The root element group is above any group for the HTML element.
The HTML element is frequently referred to as the root element, which may be causing confusion here.

The CSS backgrounds spec defines the term 'Canvas background' (which paints the propagated background from the <html> or <body>), and 'Canvas surface' (which paints the UA-defined, usually white, colour).

Is the intent the the 'Root Element Group' includes the 'Canvas background' (and the entire tree of the root element), whereas the 'Root Group' then includes the 'Canvas surface'?



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


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

Received on Thursday, 11 April 2024 23:45:22 UTC