- From: Robert Flack via GitHub <noreply@w3.org>
- Date: Wed, 25 Feb 2026 14:38:42 +0000
- To: public-css-archive@w3.org
I still think the best solution would be if the author doesn't have to do any work. The idea would be that we do a forward / backwards pass through all elements, in the forward pass setting the auto scroll-padding-block-start and scroll-padding-inline-start of elements and in the backwards pass settings the scroll-padding-block-end and scroll-padding-inline-end of objects in the current containing block. Ideally we would consider which objects overlap. @fantasai The reason I think padding makes perfect sense is that just like with the box sizing model, the padding of your ancestors affects your total effective distance from their ancestors, unlike margin which collapses and is thus independent. Similarly margin and padding can add on top of each other as expected: e.g. https://jsbin.com/zafevax/edit?html,css,output -- GitHub Notification of comment by flackr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7931#issuecomment-3959704456 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 25 February 2026 14:38:43 UTC