Closed
Bug 69745
Opened 24 years ago
Closed 18 years ago
auto-width left float containing only nested right float is too wide
Categories
(Core :: Layout: Floats, defect)
Core
Layout: Floats
Tracking
()
RESOLVED
FIXED
People
(Reporter: ian, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: css1, testcase, Whiteboard: [reflow-refactor][Hixie-P3][CSS1-5.5.25][A2])
Attachments
(1 file)
(deleted),
text/html
|
Details |
According to the CSS working group (per the August 2000 F2F [1]) nested floats
do not affect the formatting context of the ancestors of the float, and do not
get the outer float to shrink wrap about them. We do this correctly when the
outer float also has text in it ([2][3]), but when a float is directly contained
within another float, we mess up and shrink wrap the inner float.
See: http://www.hixie.ch/tests/adhoc/css/box/float/001.html
-- References --
[1] It's a little brief, but:
http://lists.w3.org/Archives/Member/w3c-css-wg/2000JulSep/0119.html
[2] http://www.hixie.ch/tests/adhoc/css/box/float/002.html
[3] http://www.hixie.ch/tests/adhoc/css/box/float/003.html
Reporter | ||
Comment 1•24 years ago
|
||
Nesting floats is not very common. Suggesting delaying until post-mozilla0.9.
QA Contact: petersen → ian
Summary: float containing only nested float doesn't get sized to nothing → float containing only nested float doesn't get sized to nothing [FLOAT]
Comment 2•24 years ago
|
||
This is actually a decision I'd like to revisit in the working group - I'd like
to see the outer floats shrink-wrap.
Comment 3•24 years ago
|
||
Accepting, and, due to low-impact, moving to future. Also, adding [FLOAT] to
summary...
Status: NEW → ASSIGNED
Priority: -- → P3
Summary: float containing only nested float doesn't get sized to nothing [FLOAT] → [FLOAT] float containing only nested float doesn't get sized to nothing [FLOAT]
Target Milestone: --- → Future
Reporter | ||
Updated•23 years ago
|
Whiteboard: [Hixie-P5] WG?
Updated•23 years ago
|
Whiteboard: [Hixie-P5] WG? → [Hixie-P5][CSS1-5.5.25] WG?
Reconfirmed using FizzillaCFM/2002070913. The testcase doesn't appear as
described. Setting All/All.
OS: Windows 2000 → All
Hardware: PC → All
Comment 5•22 years ago
|
||
CSS2.1 isn't really any more clear on this issue than previous CSS versions....
What's the current state of the spec on this?
Reporter | ||
Comment 6•22 years ago
|
||
I think the status is dbaron and I mildly disagree. I want to say that floats
are not affected by floats within them (hence my filing this bug); dbaron wants
to say that a root formatting context grows to fit all floats, including floats
(IIRC).
The WG should discuss this in the coming months.
Comment 7•22 years ago
|
||
OK. Over to layout:floats; hixie, feel free to take this pending WG discussion....
Assignee: attinasi → float
Status: ASSIGNED → NEW
Component: Layout → Layout: Floats
Priority: P3 → --
Reporter | ||
Comment 8•21 years ago
|
||
WG discussion has changed this bug slightly...
Severity: minor → normal
Summary: [FLOAT] float containing only nested float doesn't get sized to nothing [FLOAT] → left float containing only nested right float grows too big
Whiteboard: [Hixie-P5][CSS1-5.5.25] WG? → [Hixie-P3][CSS1-5.5.25]
Comment 9•21 years ago
|
||
You're right about what we should do, but the spec doesn't require it. 10.3.5
is intentionally vague.
Summary: left float containing only nested right float grows too big → auto-width left float containing only nested right float is too wide
Reporter | ||
Comment 10•21 years ago
|
||
Yes, technically "shrink-to-fit" is not defined, but I'm _reasonably_ sure that
there's no way what we do can count as "shrink-to-fit"...
Reporter | ||
Comment 11•20 years ago
|
||
Also visible when there's a right float in an abs-pos block.
Whiteboard: [Hixie-P3][CSS1-5.5.25] → [Hixie-P3][CSS1-5.5.25][A2]
Target Milestone: Future → ---
Updated•20 years ago
|
Whiteboard: [Hixie-P3][CSS1-5.5.25][A2] → [reflow-refactor][Hixie-P3][CSS1-5.5.25][A2]
Comment 12•19 years ago
|
||
My testcase shows that the bug is also present when a right-floated block
contains another right-floated block. So any block that is floated or absolutey
positioned and contains a right-floated block will be effected by this problem.
BTW, since fixing this bug would fix the second line of the Acid2 test,
shouldn't this be given more attention once Gecko 1.8 is branched?
(This is my first contribution to Bugzilla, so let me know if I did something
weid.)
Comment 13•19 years ago
|
||
According to dbaron this is fixed on his REFLOW branch.
Depends on: reflow-refactor
Updated•18 years ago
|
Flags: in-testsuite?
Comment 14•18 years ago
|
||
Fixed on trunk by reflow branch landing.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•