Closed Bug 411083 Opened 17 years ago Closed 17 years ago

Wrong rendering when padding is 0

Categories

(Core :: Layout: Block and Inline, defect)

x86
Linux
defect
Not set
normal

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.
Version: unspecified → Trunk
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? ;)
"... 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.

Attachment

General

Created:
Updated:
Size: