Problem with position:fixed and overflow:hidden

RESOLVED WORKSFORME

Status

()

Core
Layout: View Rendering
RESOLVED WORKSFORME
5 years ago
4 years ago

People

(Reporter: davidef, Unassigned)

Tracking

({css2, regression})

20 Branch
css2, regression
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(7 attachments)

(Reporter)

Description

5 years ago
Created attachment 740668 [details]
position-fixed_and_overflow_hidden.htm

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0
Build ID: 20130409194949

Steps to reproduce:

Create DIV (or SPAN) with stile position:fixed; overflow:hidden and inside second DIV (or SPAN) with position:fixed


Actual results:

Overflow _NOT_ function, second DIV (or SPAN) is _MOVED_ on top page


Expected results:

With position:relative or position:absolute is overflow:hidden and position OK
(Reporter)

Updated

5 years ago
Keywords: css2, regression
OS: Windows XP → All
Hardware: x86 → All
(Reporter)

Comment 1

5 years ago
Created attachment 741179 [details]
Table with all combination of position for DIV and SPAN

Position fixed is totaly broken, bad any other combination is broken too.

Updated

4 years ago
Attachment #740668 - Attachment mime type: text/plain → text/html

Updated

4 years ago
Attachment #741179 - Attachment mime type: text/plain → text/html

Updated

4 years ago
Component: Untriaged → Layout: View Rendering
Product: Firefox → Core
This worksforme as far as I can tell.  Reporter, can still reproduce?
Flags: needinfo?(davidef)
(Reporter)

Comment 3

4 years ago
Created attachment 803654 [details]
Basic example. Insider block with style FIXED is displaing on top window.
Flags: needinfo?(davidef)
(Reporter)

Comment 4

4 years ago
Created attachment 803655 [details]
Basic example after resize window. Insider block not moved, bot owerglow not hidden.
(Reporter)

Comment 5

4 years ago
Created attachment 803656 [details]
In this table is all combinations. Many combinations is broken.
(Reporter)

Comment 6

4 years ago
Created attachment 803657 [details]
And ther is table after resize window. Text not moved top, but owerflow...
(Reporter)

Comment 7

4 years ago
Created attachment 803658 [details]
Firefox version: 23
I'm not seeing the rendering you see in attachment 803654 [details] in a current trunk build (though I do see it in Firefox 23).

The rendering in attachment 803655 [details] looks correct to me: fixed-positioned boxes are kids of the viewport, so not affected by overflow styles on DOM ancestors.

Sounds like this got fixed sometime after 23.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.