anchored positioned element turns invisible when scrolling passed a point
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: nchevobbe, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Steps to reproduce
- Open the attached test case
- Scroll the page
Actual results
At some point, as the anchor gets scrolled away, the "This is an information box" element sticks to the top
Then if you keep scrolling, at some point the element vanishes (I'll post a screencast)
Its bounding client rect still report that it should be in the top left corner (DOMRect { x: 0, y: 0, width: 191.8000030517578, height: 162.39999389648438) , its computed display is still block, its visibility is still visible, there's no 0 opacity that would explain why you can't see it anymore
| Reporter | ||
Comment 1•2 months ago
|
||
Comment 2•2 months ago
|
||
Is this because position-visibility defaults to anchors-visible? I think I get your expected behaviour if I add position-visibility: always to the testcase.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/position-visibility
Comment 3•2 months ago
•
|
||
(This testcase also displays quite differently in safari and chrome)
Comment 4•2 months ago
|
||
Yeah the visibility is expected.
| Reporter | ||
Comment 5•2 months ago
|
||
(In reply to Timothy Nikkel (:tnikkel) from comment #2)
Is this because position-visibility defaults to anchors-visible? I think I get your expected behaviour if I add position-visibility: always to the testcase.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/position-visibility
Ah okay, I didn't know about this property and I was confused. I filed Bug 2004628 to surface it in DevTools
Comment 6•2 months ago
|
||
The visibility stuff seems invalid, the rest seems to be bug 1991929.
Description
•