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

>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.

So what? You’ve identified two properties—keeping elements in-flow (e.g "leave behind" their geometry in their original position") and creating abspos containing blocks—that are not shared by abspos or fixpos. Does this really justify explaining sticky positioning in terms of relative positioning? What’s the goal here—saving words?

While sticky positioning does 'leave behind' its geometry in the original position, the conditions under which this happens are fundamentally different from relative positioning. In relative positioning, the inset properties determine the shift in geometry from the outset. Describing sticky as 'identical to relative, except...' is overly simplistic and misleading, as it fails to convey when the 'relative positioning' behavior actually begins to occur.

At the very least, the spec should explicitly state that once a sticky element reaches an inset threshold, its geometry shifts to remain in view within its containing block while still retaining its original in-flow space—similar to how relative positioning behaves.

I suggest you consider this as an open issue.

-- 
GitHub Notification of comment by gitspeaks
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11298#issuecomment-2510869831 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 08:26:15 UTC