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

gitspeaks has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-position-3] Disassociate sticky positioning from relative positioning ==
The [CSS Position 3 spec, Section 2](https://drafts.csswg.org/css-position-3/#valdef-position-sticky) states:

> `sticky`
>  Identical to relative, except that its offsets are automatically adjusted in reference to the nearest ancestor scroll container’s scrollport ...

The [CSS Position 3 spec, Section 3.4](https://drafts.csswg.org/css-position-3/#stickypos-insets) states:

> Sticky positioning is similar to relative positioning except the offsets are automatically calculated in reference to the nearest scrollport.


Issue:

Sticky positioning is neither identical nor similar to relative positioning. In relative positioning, the element is immediately shifted by the specified offset, while preserving its original space in the layout. In sticky positioning, the element initially remains in its normal flow position, with the offset acting as a threshold that activates sticky behavior during scrolling. Before scrolling, the element behaves as though it is static, not positioned.

Describing sticky positioning in terms of relative positioning is unnecessary and misleading. The spec should describe sticky positioning independently.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11298 using your GitHub account


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

Received on Friday, 29 November 2024 21:52:57 UTC