Re: [csswg-drafts] [css-position-3] Making a stickypos in a scroller also see the viewport edges (#8286)

This problem arose many years ago and as of today, there is still no native solution available to fix it.

I believe that prioritizing generalization and reusability can be achieved afterward. Like when replacing "grid-gap" with "gap".

When it comes to addressing the problem of sticky parents, I believe a simple solution should be considered.
Rather than changing the current behavior of "position: sticky".
We could define a new set of attributes that specifically target this issue. 
This approach would also prevent any disruptions to websites that have already implemented "position: sticky".
  
I spent several hours searching for a way to make "position: sticky" work within an "[ overflow | overflow-x | overflow-y ] : [ auto | hidden | scroll ]" parent.
I want it to be stick to the viewport. Unfortunately, none of the solutions I found met my needs.
  
In my experience, when people are looking to accomplish a specific task, they will search for documentation or tutorials that can guide them. If a new CSS feature becomes available, someone is likely to write a tutorial on how to use it.

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


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

Received on Wednesday, 5 April 2023 15:43:05 UTC