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 }}
[css-spatial] How does inset-back interact with parent transforms and transform-style #155
In this example, does the child move 2cm along the parent's rotated direction, or towards the user along the original page direction,
And also, if the parent uses transform-style: flat , or opacity: 0.5, should the child keep its independent physical inset-back, or be flattened onto the parent's plane?
It would move along the parent's rotated direction, because transformed elements create new coordinate orientation for the z-axis insets, just like they do for the horizontal and vertical insets.
transform-style: flat flattens the contents. I'm unsure about opacity.
Thanks for clarifying how inset-back follows the parent's transformed coordinate system, and how transform-style: flat behaves!
So, on opacity, trying to understand how spatial css should interact with existing CSS flattening rules.
CSS Transforms Level 2, §7.1 specifies certain properties (i.e. opacity <1, filter, clip-path, etc.) force used value of transform-style to flat.
Since Spatial CSS allows spatially positioned descendants to participate in a 3D rendering context independently of preserve-3d, should these grouping properties also flatten their inset-back depth?
For example, if a parent has opacity: 0.5 and its child has inset-back: 2cm, should the child be flattened onto the parent's plane, or retain its independent physical depth?
Activity
fantasai commentedon Oct 27, 2026
It would move along the parent's rotated direction, because transformed elements create new coordinate orientation for the z-axis insets, just like they do for the horizontal and vertical insets.
transform-style: flatflattens the contents. I'm unsure aboutopacity.parthpatelsj commentedon Oct 27, 2026
Thanks for clarifying how inset-back follows the parent's transformed coordinate system, and how
transform-style: flatbehaves!So, on
opacity, trying to understand how spatial css should interact with existing CSS flattening rules.CSS Transforms Level 2, §7.1 specifies certain properties (i.e. opacity <1, filter, clip-path, etc.) force used value of
transform-styleto flat.Since Spatial CSS allows spatially positioned descendants to participate in a 3D rendering context independently of preserve-3d, should these grouping properties also flatten their inset-back depth?
For example, if a parent has
opacity: 0.5and its child hasinset-back: 2cm, should the child be flattened onto the parent's plane, or retain its independent physical depth?