Closed
Bug 6947
Opened 25 years ago
Closed 25 years ago
no topmargin when the content is only a floated element
Categories
(Core :: Layout: Tables, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: hyp-x, Assigned: troy)
Details
There is no top margin as the following example is rendered.
(The table is drawn at a wrong place.)
Builds tested are: M5 and 1999052208
---
<html>
<body>
<table border=3 align=left>
<tr><td>foo</td>
</table>
</body>
</html>
Updated•25 years ago
|
Assignee: karnaze → troy
Comment 1•25 years ago
|
||
Troy, can you take a look. If I put text after the table, the top margin shows
up. Also note, if I put text before the table, the text goes on a separate line.
Comment 2•25 years ago
|
||
This may have to do with BODY's margin collapsing through, since BODY has no
content. (Or is it HTML's margin?) I'd have to investigate a bit more to see
if it's correct.
The same problem happens when the table is floated right, as would be expected.
It's okay if the table is not floated, and is placed as a block-level element.
Summary: no topmargin when the content is only a left/right aligned table → no topmargin when the content is only a floated element
Turns out the bug isn't specific to tables as the example below that uses a DIV
demonstrates.
<html>
<body>
<div style="float:left; width:100px">Text in a DIV</div>
</body>
</html>
I'm changing the Summary field accordingly
Comparing two tree dumps, it's the BODY margin that isn't getting applied.
ua.css confirms that the BODY should have a margin:
body {
display: block;
line-height: normal;
margin: 8px;
}
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 6•25 years ago
|
||
Using 8/1 Apprunner, verified bug fixed.
You need to log in
before you can comment on or make changes to this bug.
Description
•