Re: [csswg-drafts] [css-position] ‘Sticky’ behavior is too limited as position scheme created from the elements nearest block level ancestor & margins (#2496)

Here's a proof of concept I made recently for stacking sticky elements with arbitrary nesting and no JS. It's complicated by not being able to do this kind of arithmetic directly in css:

```css
--x: calc(var(x) + 1)
```

But otherwise works well: https://codepen.io/WickyNilliams/pen/MWVaPKz

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


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

Received on Saturday, 6 August 2022 15:46:48 UTC