Closed Bug 2004295 Opened 2 months ago Closed 2 months ago

anchored positioned element turns invisible when scrolling passed a point

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: nchevobbe, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Steps to reproduce

  1. Open the attached test case
  2. 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


Attached video screencast of the issue
See Also: → 2004003

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

(This testcase also displays quite differently in safari and chrome)

Yeah the visibility is expected.

(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

See Also: → 2004628

The visibility stuff seems invalid, the rest seems to be bug 1991929.

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: