You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-transforms-2] transform-style: preserve-3d should only have effects on transformable elements #6430
However, I think the intent of this "Applies to" line is that the property only have effects on transformable elements -- i.e., that it shouldn't have effects on non-replaced inlines. In particular, the effect here would be only the third place in CSS where non-replaced inlines could be a containing block for fixed-positioned elements (the other two being filter and backdrop-filter).
So I'd propose changing the wording of the above sentence to instead say:
A computed value of preserve-3d for transform-style on a transformable element establishes both a stacking context and a containing block for all descendants.
I think this still fits with the original intent of the wording which is that the effects of grouping properties not be considered in determining whether to establish a containing block or stacking context.
Activity
dbaron commentedon Jul 8, 2021
And based on code inspection, this appears to match what Gecko does.
(I'd like to change Chrome to do the same, because then I won't have to worry about how to fix some assertion failures.)
[TransformInterop] Make preserve-3d still be no-op on inlines.
[TransformInterop] Make preserve-3d still be no-op on inlines.
[TransformInterop] Make preserve-3d still be no-op on inlines.
[TransformInterop] Make preserve-3d still be no-op on inlines.
Bug 1719593 [wpt PR 29605] - [TransformInterop] Make preserve-3d stil…
Bug 1719593 [wpt PR 29605] - [TransformInterop] Make preserve-3d stil…
Bug 1719593 [wpt PR 29605] - [TransformInterop] Make preserve-3d stil…
Bug 1719593 [wpt PR 29605] - [TransformInterop] Make preserve-3d stil…
mattwoodrow commentedon Aug 4, 2021
Sorry for the slow response. I agree that your proposed wording better reflects the intent, and makes things easier to understand and implement.
Bug 1719593 [wpt PR 29605] - [TransformInterop] Make preserve-3d stil…
Bug 1719593 [wpt PR 29605] - [TransformInterop] Make preserve-3d stil…