div with style width=100% and padding renders to wide

RESOLVED INVALID

Status

()

Core
Layout
RESOLVED INVALID
15 years ago
15 years ago

People

(Reporter: Scott Kester, Unassigned)

Tracking

Trunk
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

15 years ago
User-Agent:       
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040220 Firefox/0.8.0+

It appears as if the padding is being added on top of the 100% width, causing
the div to be wider than the containing table cell.

This bug is not present in my 20040203 build, but is in both mozilla and firefox
builds as of 20040220, on both linux and windows.


Reproducible: Always
Steps to Reproduce:
1.please see test case
2.
3.

Actual Results:  
The div in question flows out of the containing table cell.

Expected Results:  
The div should not exceed the width of the table cell.
(Reporter)

Comment 1

15 years ago
Created attachment 141842 [details]
Test case

Test case
This behavior is correct.  I think you'll see the same behavior in IE6/Windows
if you put a strict DOCTYPE on the page.
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.