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

position: sticky does not treat the element's borders as part of it #1245

Closed
AtkinsSJ opened this issue Sep 2, 2024 · 0 comments · Fixed by #1251
Closed

position: sticky does not treat the element's borders as part of it #1245

AtkinsSJ opened this issue Sep 2, 2024 · 0 comments · Fixed by #1251
Labels
bug Something isn't working has repro We have a way to reproduce this bug. layout reduction of web content Issue has a simplified reduction based on real-world web content. web compatibility

Comments

@AtkinsSJ
Copy link
Member

AtkinsSJ commented Sep 2, 2024

With this reduced case:

<style>
html, body {
    margin: 0;
}
.sticky {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: cyan;
    border-top: 20px solid magenta;
    padding: 0.5em;
}
</style>
<div style="height: 10000px">
    <div class="sticky">I'm sticky</div>
</div>

When scrolling down, other browsers keep the full border in view, but we do not.

@AtkinsSJ AtkinsSJ added bug Something isn't working reduction of web content Issue has a simplified reduction based on real-world web content. has repro We have a way to reproduce this bug. web compatibility layout labels Sep 2, 2024
kalenikaliaksandr added a commit to kalenikaliaksandr/ladybird that referenced this issue Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has repro We have a way to reproduce this bug. layout reduction of web content Issue has a simplified reduction based on real-world web content. web compatibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant