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-spatial] Should position: fixed and postition: sticky support inset-back? #149
Thanks for the response! I think our original question was a little unclear. I wasn't suggesting sticky positioning along the Z-axis.
a) position: sticky
Can an element retain its normal sticky behavior along the Y-axis while also having a constant inset-back offset? I would assume yes?
b) position: fixed
Can inset-back apply to a fixed element when its containing block is within a spatial context?
My assumption is that existing CSS rules for fixed positioning remain unchanged (normally relative to the viewport, or to an ancestor that establishes a fixed-position containing block, such as one with a transform). Spatial CSS would simply add the Z offset. Is that the intended behavior?
Can an element retain its normal sticky behavior along the Y-axis while also having a constant inset-back offset? I would assume yes?
Yes, y-axis positioning is not affected by z-axis positioning, they are independent controls. =
Can inset-back apply to a fixed element when its containing block is within a spatial context?
Yes, although the way fixed elements attach to containing blocks is still an open area of discussion in the CSSWG (outside of spatial considerations).
My assumption is that existing CSS rules for fixed positioning remain unchanged (normally relative to the viewport, or to an ancestor that establishes a fixed-position containing block, such as one with a transform). Spatial CSS would simply add the Z offset. Is that the intended behavior?
Yes, exactly. Just keep in mind that the containing block is not necessarily the parent. :)
Activity
fantasai commentedon Oct 27, 2026
I don't know what it would mean for them to be sticky, since the z-axis is not a possible scrolling axis...
parthpatelsj commentedon Oct 27, 2026
Thanks for the response! I think our original question was a little unclear. I wasn't suggesting sticky positioning along the Z-axis.
a)
position: stickyCan an element retain its normal sticky behavior along the Y-axis while also having a constant inset-back offset? I would assume yes?
b)
position: fixedCan inset-back apply to a fixed element when its containing block is within a spatial context?
My assumption is that existing CSS rules for fixed positioning remain unchanged (normally relative to the viewport, or to an ancestor that establishes a fixed-position containing block, such as one with a transform). Spatial CSS would simply add the Z offset. Is that the intended behavior?
fantasai commentedon Nov 2, 2026
Yes, y-axis positioning is not affected by z-axis positioning, they are independent controls. =
Yes, although the way fixed elements attach to containing blocks is still an open area of discussion in the CSSWG (outside of spatial considerations).
Yes, exactly. Just keep in mind that the containing block is not necessarily the parent. :)
[css-spatial] Clarify handling of sticky and absolute positioning wit…
[css-spatial] Clarify handling of sticky and absolute positioning wit…
[css-spatial-1] Clarify handling of sticky and absolute positioning w…