Re: [csswg-drafts] [css-transforms-2, css2.1] Define the pseudo stacking context concept (#4360)

> Overflow:scroll shouldn't create a pseudo stacking context (unfortunately), since it should be possible for things outside the scroller to interleave things inside. That'd be a significant webcompat change I think.

Pseudo stacking contexts aren't stacking contexts. They are just paint-as-if-positioned, plus the relationship to backface-visibility and maybe preserve-3d.

As for web compat: Blink already does it, so it's web compatible. And I do think that it is likely not good that backface-visibility leaks across scrolling elements.

> Videos/canvas don't paint as positioned for gecko, and the actual video is sorted separately to the background for a video element (content group, and backgrounds/block-backgrounds respectively)

On reflection, I think it's fine to not specify this case. These elements can't have children anyway, so it's just about paint-as-if-positioned behavior. Right now Blink and WebKit both paint them as if positioned due to limitations in their rendering architectures. Blink is working on fixing that and it will eventually be fixed.


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

Received on Saturday, 21 September 2019 20:37:10 UTC