Closed
Bug 182331
Opened 22 years ago
Closed 18 years ago
{inc}Floated image without sizing information munges layout
Categories
(Core :: Layout: Floats, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
Future
People
(Reporter: mozilla, Unassigned)
References
()
Details
(Keywords: regression, testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.3a) Gecko/20021123
Build Identifier: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.3a) Gecko/20021123
The page has an "img" tag with a style "float:left;", but no width or height
tags. On first rendering, this causes significant layout problems - the <h1>
text is placed mostly under the image, and the div with "clear:both;" gets
placed slightly under the image.
If you force a redraw, either by following a link and going "back," or by
resizing the screen, the layout is fine. If you add size information to the
image style, it also is laid out correctly.
Reproducible: Always
Steps to Reproduce:
1. Load the above web page
2. Check that the image does not overlap the text or the green div after the text.
3. Sometimes (rarely) it draws correctly the first time. If so, try a few
shift-reloads.
Actual Results:
Layout overlaps and misplacements as described above.
Expected Results:
The correct result can be found in the work-around example, where image size
information is included in the img tag:
http://thomaso.best.vwh.net/mozilla/bearleft/workaround.html
Easy workaround. Do people often "float" images of unknown size?
| Reporter | ||
Comment 1•22 years ago
|
||
I also see this bug in Phoenix 0.4.
Comment 2•22 years ago
|
||
confirmed with linux trunk build.
regression between linux trunk builds 2002042610 and 2002042807, branch builds
20020607 and 20020621.
==> floats
Assignee: other → float
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Floats
Ever confirmed: true
Keywords: testcase
Summary: Floated image without sizing information munges layout → {inc}Floated image without sizing information munges layout
Updated•22 years ago
|
Keywords: regression
OS: Windows 2000 → All
Updated•22 years ago
|
Priority: -- → P3
Target Milestone: --- → Future
Comment 3•21 years ago
|
||
WTF trunk Mozilla, 2004032802.
Comment 4•21 years ago
|
||
WTF, indeed.
I'm still seeing the bug with linux turnk 2004033007
Comment 5•21 years ago
|
||
Oops, I meant "WFM". I can't reproduce it at all here, either in build
2004032802, or 2004021913 (1.7a). No matter how much I reload, the green div
always moves down when it gets the image size, as it's meant to.
| Reporter | ||
Comment 6•21 years ago
|
||
I still get a problem, although it's not nearly as bad as it used to be.I'll
attach a screen shot.
| Reporter | ||
Comment 7•21 years ago
|
||
Comment 9•18 years ago
|
||
I see no difference in layout between:
- Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/2006120606 Minefield/3.0a (pre-reflow branch)
- Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/2006120804 Minefield/3.0a1 (post-reflow branch)
Comment 10•18 years ago
|
||
I don't see the bug with the original testcase, even with builds that I saw it with before. I see a problem with the attached testcase with Mozilla 1.6, but not 1.7.x
resolving WFM
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•