Closed
Bug 411083
Opened 17 years ago
Closed 17 years ago
Wrong rendering when padding is 0
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: linuxadmin, Unassigned)
Details
Attachments
(4 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en; rv:1.9b3pre) Gecko/2008010604 Minefield/3.0b3pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en; rv:1.9b3pre) Gecko/2008010604 Minefield/3.0b3pre
When padding is 0 instead of 0.01em, some elements are rendered totally different - see screenshots and testcases.
The only difference between both testcases is:
Some elements in the file 2008-01-07-padding-correct.xhtml have padding 0.01em, while in the file 2008-01-07-padding-wrong.xhtml same elements have padding 0.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
| Reporter | ||
Comment 1•17 years ago
|
||
| Reporter | ||
Comment 2•17 years ago
|
||
| Reporter | ||
Comment 3•17 years ago
|
||
| Reporter | ||
Comment 4•17 years ago
|
||
| Reporter | ||
Updated•17 years ago
|
Version: unspecified → Trunk
| Reporter | ||
Comment 5•17 years ago
|
||
well, this is strange:
opera 0.24 renders the 'correct' testcase also in a 'wrong way'. but increasing padding to 0.1em (remember: the 'correct' test case has 0.01em) makes rendering correct.
or are both browsers doing it right and this is again one of those css box model's mysteries, that only gods understand? ;)
Comment 6•17 years ago
|
||
"... adjoining margins (no non-empty content, padding or border areas or clearance separate them) of two or more boxes (which may be next to one another or nested) combine to form a single margin. "
http://www.w3.org/TR/CSS21/box.html#collapsing-margins
When you introduce a non-zero vertical padding you prevent margin collapsing
from happening through that padding.
-> INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•