Re: [csswg-drafts] [css-anchor-1] Could anchor positioning work for defining the targets of sticky elements? (#8905)

Agree (though, usually, if you have access to the markdown engine, you could hack around the addition of the sections in your project).

I would need to play a bit more with things, but _I think_ it could be possible to then use explicit unique anchor names for various headers, and use `min()`/`max()` to define how the stickiness should behave.

Either way, in my opinion, if it is possible to provide a convenient and concise API for a case when we can control HTML and then improve the other cases, even if in a rather awkward/hacky manner — it is better than nothing.

If there were a better and more feasible proposal, it would be nice to have anything that would improve the current `position: sticky`, but I think anchor positioning (as it is defined now) can be reused to improve stickiness substantially.

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


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

Received on Wednesday, 26 July 2023 22:45:50 UTC