Closed
Bug 357714
Opened 19 years ago
Closed 18 years ago
rendering of overflow: auto lost style for offscreen content
Categories
(Core :: Layout: Positioned, defect)
Core
Layout: Positioned
Tracking
()
RESOLVED
DUPLICATE
of bug 309110
People
(Reporter: yannick, Unassigned)
Details
(Keywords: testcase)
Attachments
(5 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20061015 Firefox/1.5.0.7
Build Identifier:
I created a layout with a menu at the top.
Firefox and IE behave properly for it.
Except for firefox when the menu is larger than the default area width.
Use my provided html and css, you will see the menu and you will also see a horizontal scrollbar at the bottom, now if you scroll that bar, the background color is lost when displaying the menu outside of the default visual area.
IE will not have this behavior as it wrap the menu. I personnaly prefer the way firefox renders it, except that I would like my background to continue to the right.
Now... I have no idea of what the CSS standard says about this. Help appreciated.
Reproducible: Always
Steps to Reproduce:
1. open firefox with my test.html and css
Actual Results:
part offscreen doesn't have cSs style applied to it.
Expected Results:
Either like IE, the menu wrap so that no offscreen area exists or that the background be displayed on the offscreen part
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
Comment 3•19 years ago
|
||
This is a reduced version of the markup/style from the first two attachments.
I think this is rendered correctly.
Comment 4•19 years ago
|
||
Similar case, but with shrink-wrap width.
Updated•19 years ago
|
Component: General → Layout: R & A Pos
Keywords: testcase
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → layout.r-and-a-pos
Hardware: PC → All
Version: unspecified → Trunk
Reporter | ||
Comment 5•19 years ago
|
||
The issue I have with this is that the LI on the right are rendered in a different style than the left ones even thought they are inside the same UL attribute and that UL is styled.
Using DOM navigation tools and such, when you go over the UL DOM part it correctly highlight the whole rectangle (from the styled part to the end of the list where the entries are unstyled) meaning the width of that DOM object (the UL) is taking the whole area not just the visible one. Therefore I also think the style associated with the UL must follow its width.
But I am far from being a standard expert here. Yet the behavior I see doesn't seem normal, why would someone want to have the overflow text scrollable but with a different style.
Reporter | ||
Comment 6•19 years ago
|
||
What is the step to move this forward? Who can confirm or not this issue?
Comment 7•18 years ago
|
||
The background doesn't extend beyond the bounds of the block. The block's width is the available width. The inline content overflows the block, and therefore doesn't get a background.
You can probably get the behavior you want by floating the list and its container, which triggers shrink-wrapping.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 8•18 years ago
|
||
I solved my issue by adding overflow:auto to the regi and glob id.
Status: RESOLVED → VERIFIED
Comment 9•18 years ago
|
||
I still think we render Testcase #2 wrong.
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
says that for absolutely positioned non-replaced elements the shrink-to-fit
width is: min(max(preferred minimum width, available width), preferred width).
Since there are no possible line breaks the "preferred minimum width" is
the width of the text which will also be the result of the equation above.
Note that the only difference between the examples in the testcase is
that the pink box has 'overflow: auto' whereas the yellow has
'overflow: visible' -- there is nothing in CSS 10.3.7 that says anything
about giving different results for different values of 'overflow' AFAICT.
FWIW, Opera 9 and WebKit have the correct layout IMO.
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
Comment 10•18 years ago
|
||
Comment 11•18 years ago
|
||
Isn't that just a variant of Bug 309110?
Looks like it to me.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → DUPLICATE
Updated•18 years ago
|
Flags: in-testsuite?
Comment 13•18 years ago
|
||
Bug 309110 was resolved WONTFIX and as far as I can tell we are not
compliant with the CSS 2.1 spec (see comment 9). Shouldn't we track
this discrepancy somehow, possibly requesting a change in the spec?
![]() |
||
Comment 14•18 years ago
|
||
I think so, yes. Care to bring it up on www-style?
![]() |
||
Comment 15•18 years ago
|
||
Note, though, that the CSS spec doesn't say anywhere exactly how the "preferred minimum width" is computed...
![]() |
||
Comment 16•18 years ago
|
||
I sent mail. Note that in Opera, the preferred min width seems to depend on the ancestors or something... In particular, Opera renders the testcase in bug 309110 like we do (if you do s/overflow-x/overflow/).
You need to log in
before you can comment on or make changes to this bug.
Description
•