Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Sticky positioning is a hybrid of relative and fixed positioning" is slightly confusing #33146

Closed
abhay27chauhan opened this issue Apr 18, 2024 · 1 comment · Fixed by #34776
Labels
Content:CSS Cascading Style Sheets docs help wanted If you know something about this topic, we would love your help!

Comments

@abhay27chauhan
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/position#sticky_positioning

What specific section or headline is this issue about?

Sticky positioning

What information was incorrect, unhelpful, or incomplete?

In the first line it is written -> Sticky positioning can be thought of as a hybrid of relative and fixed positioning when its nearest scrolling ancestor is the viewport.

What did you expect to see?

imo but it should be -> Sticky positioning can be thought of as a hybrid of relative and fixed positioning when its nearest scrolling ancestor is in the viewport

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

@abhay27chauhan abhay27chauhan added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Apr 18, 2024
@github-actions github-actions bot added the Content:CSS Cascading Style Sheets docs label Apr 18, 2024
@Josh-Cena
Copy link
Member

The current text is correct because "fixed" is always relative to the viewport, while "sticky" is relative to the scrolling ancestor. I'm not sure how we can improve it here but this whole thing is a big confusing.

@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jun 11, 2024
@Josh-Cena Josh-Cena changed the title Update the content in Sticky positioning in position - CSS section Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:CSS Cascading Style Sheets docs help wanted If you know something about this topic, we would love your help!
2 participants