Closed Bug 1452006 Opened 6 years ago Closed 5 years ago

position fixed element inside position sticky element is cut off by parent

Categories

(Core :: Web Painting, defect, P3)

61 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1514291

People

(Reporter: bhainesva, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180405220026

Steps to reproduce:

Demonstrated in this jsFiddle: https://jsfiddle.net/jjh63tpe/

I put an element with `position: fixed` inside an element with `position: sticky` where the sticky element is the child of an overflowing parent. 

I tried this in Firefox 59 for Mac and Firefox 59 and Nightly for Windows 10. 


Actual results:

When I load the linked jsFiddle on a screen small enough that the yellow rectangle overflows and a scroll bar appears, the orange square displays fully, above the yellow rectangle and its scrollbar. When I click into the page the orange square disappears partially, appearing to be cut off by the edges of the yellow rectangle. Waiting for some amount of time (~20 seconds seems long enough but it varies), the orange square reappears fully but disappears on another click. 


Expected results:

I expect the orange square to always render fully, visually in front of the yellow rectangle and its scrollbar. This is how it behaves in other browsers (I've tried Chrome 65 on Windows/Mac, Internet Explorer 11 and Edge). In all cases the orange box renders fully (although the sticky positioning doesn't work in IE because it isn't supported). 

Changing the `position: sticky` element to have any other positioning causes the orange box to render as I expect. Removing content from the yellow rectangle such that it no longer overflows also causes the orange box to render as I expect.
Component: Untriaged → Layout
Product: Firefox → Core
Priority: -- → P3

Yeah, something odd is going on with clipping here. Markus, do you know what's the expected way to clip the fixed descendant of a scroll frame? I assume it shouldn't be clipped to that scroll frame, but seems like something's going awry if that descendant is also a sticky node.

Status: UNCONFIRMED → NEW
Component: Layout → Web Painting
Ever confirmed: true
Flags: needinfo?(mstange)

Ah, looks like bug 1514291 has more information.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(mstange)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.