Re: [csswg-drafts] [css-scroll-snap] Support scroll-padding on all elements. (#7931)

> (I'm still bothered by us not having a way to set scroll-padding to respond to the actual height of some element; having to hardcode 51px in your example is such a code smell.)

Well, the spec. already allows UAs to choose the height of the sticky element as offset via the initial `auto` value. It even provides a [similar example](https://w3c.github.io/csswg-drafts/css-scroll-snap/#example-71c18b16).

So maybe the description of the `auto` value should be more explicit about sticky-positioned and fixed-positioned elements and provide some algorithm to determine the offset. Anything beyond that may be left to the heuristics of UAs.

Sebastian

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


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

Received on Saturday, 22 October 2022 23:41:33 UTC