Sticky postioned table-caption elements draw at wrong position after scrolling back up
Categories
(Core :: Layout: Positioned, defect, P3)
Tracking
()
People
(Reporter: m.gamper, Assigned: emilio)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(4 files)
Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 6•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 7•3 years ago
|
||
I’ve run into the same bug, see https://codepen.io/gunnarbittersmann/pen/PoOeKvO?editors=0100
Is there some work-around until this bug will eventuelly be fixed?
(In reply to gunnar@bittersmann.de from comment #7)
I’ve run into the same bug, see https://codepen.io/gunnarbittersmann/pen/PoOeKvO?editors=0100
Is there some work-around until this bug will eventuelly be fixed?
I have found one:
<style>
@keyframes chwidth {
0% { width: 100%; } 50% { width: 0%; } 100% { width: 100%; }
}
.chwidth {
max-width: 0;
animation: 1s chwidth infinite;
}
</style>
<table>
<caption style="position:sticky;top:0">SomeCaption<div class="chwidth"></div></caption>
<tr><td>someval1</td><td>someval2</td></tr>
</table>
The animation does nothing, but makes ff think changes are large enough to force an invalidation every frame.
This works very reliably for scrolling with the scrollbar or gestures. For scrolling using the mouse weel the caption jumps around somewhat, which is visually iritating but otherwise harmless.
Assignee | ||
Comment 9•3 years ago
|
||
If I understand correctly sticky when scrolling is mostly dealt with in APZ, but feel free to bounce back if this ends up being a layout bug after all...
Assignee | ||
Comment 10•3 years ago
|
||
Actually looking a bit deeper into it it does look like a layout bug.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 11•3 years ago
|
||
Captions should be relatively-positioned (other browsers support this as
well). This ensures we correctly save their normal positions and thus
that the sticky scroll container knows how to reposition them correctly.
Avoid registering inner table frames with the sticky scroll container to
make the assertion sound in cases of sticky-positioned tables.
Assignee | ||
Updated•3 years ago
|
Comment 12•3 years ago
|
||
Comment 14•3 years ago
•
|
||
Backed out for causing multiple failures related to StickyScrollContainer.
Failure log for debug-crashtest
Failure log for reftest
Failure log for wpt
Comment 16•3 years ago
|
||
Comment 17•3 years ago
|
||
bugherder |
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Description
•