Closed Bug 342867 Opened 18 years ago Closed 18 years ago

The "padding" style is not applying correctly when 3 recursive "DIV" in page.

Categories

(Toolkit :: View Source, defect)

All
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 50449

People

(Reporter: besd, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.7.12) Gecko/20050919 Firefox/1.0.7

<div style="width: 200; height: 200; border: 1px solid black;">
<div style="width: 100%; height: 100%; padding: 15px;">
<div style="width: 100%; height: 100%; background-color: red; border: 1px solid black;">
</div>
</div>
</div>

Reproducible: Always

Steps to Reproduce:
1.Run sample of the code in Details.
2.
3.
Attached file HTML to show problem
Unexpected, maybe, but not incorrect: "width:" specifies the content-width, not the box-width, so your second div is 100% of 200, with the padding added on outside that.

*** This bug has been marked as a duplicate of 50449 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: