Re: [csswg-drafts] [css-position-3] Disassociate sticky positioning from relative positioning (#11298)

No, they are indeed identical in overall behavior: both keep their elements in-flow, both create abspos containing blocks, and both "leave behind" their geometry in their original position, just shifting the element visually. These properties are not shared by abspos or fixpos.

The differences are in how their 'inset' arguments relate to their shifted position: relative moves the element by the inset, while sticky moves automatically to stay within the scrollport, with a separation from the scrollport edge given by the inset.

So yes, they are indeed largely identical, except for the difference that is called out.

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


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

Received on Monday, 2 December 2024 00:57:42 UTC