Closed Bug 1472602 Opened 6 years ago Closed 2 years ago
Sticky postioned table-caption elements draw at wrong position after scrolling back up
144.54 KB, image/png
3.87 KB, text/html
165 bytes, text/html
48 bytes, text/x-phabricator-request
|Details | Review|
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:63.0) Gecko/20100101 Firefox/63.0 Build ID: 20180701220749 Steps to reproduce: A table's caption element who is positioned sticky works fine if I scroll down. If I scroll up, the element remains in it's last position and covers the table element. Actual results: If I scroll up, the element remains in it's last position and covers parts of the table element. Expected results: The caption element sould stay sticky until it reached is original position where it should scroll with the rest of the content.
Do you have a link to the HTML, or an HTML testcase you could attach?
Component: CSS Parsing and Computation → Layout
Here's a live example: https://www.frauenfeld.ch/politik-verwaltung/verwaltung/online-schalter.html/344/l/de And an isolated test case is here: https://codepen.io/macgamper/pen/mKvoyL
I can reproduce this using the codepen. mozregression got me this range, which is where this testcase goes from "no sticky positioning at all" to "broken sticky positioning": https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=0843e4e6cb1d6e32a35ce4d7014bd250c24f74fa&tochange=d20967c26da559a7781db467741bb240af9bfe5c That indicates that this started when bug 975644 landed (that's where we added support for sticky-positioned table captions).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Sticky postioned caption elements won't work if scrolling up → Sticky postioned table-caption elements won't work if scrolling up
Attachment #8990825 - Attachment description: (helper for testcase 1) → testcase 1
Attachment #8990827 - Attachment description: testcase 1 → testcase 2 (with testcase 2 in an iframe)
I find it's a bit easier to trigger the problem when using attachment 8990827 [details] (the version with an iframe). However, I can trigger it with the standalone file (attachment 8990825 [details]) if I simply scroll down & back to the top, and then switch to a different tab and back. So -- this seems to be an invalidation bug of some sort.
Summary: Sticky postioned table-caption elements won't work if scrolling up → Sticky postioned table-caption elements draw at wrong position after scrolling back up
Component: Layout → Panning and Zooming
Component: Panning and Zooming → Layout: Positioned
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/e3377838e213 Sticky/relative position fixes in nsTableWrapperFrame. r=dholbert
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/34174 for changes under testing/web-platform/tests
Upstream PR was closed without merging
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/cf63538fe82c Sticky/relative position fixes in nsTableWrapperFrame. r=dholbert
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.