Bug 17858 - input element inside div and div inside div is rendered incorrectly
Summary: input element inside div and div inside div is rendered incorrectly
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2008-03-14 16:11 PDT by jasneet
Modified: 2008-03-15 02:40 PDT (History)
2 users (show)

See Also:


Attachments
reduction (413 bytes, text/html)
2008-03-14 16:12 PDT, jasneet
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jasneet 2008-03-14 16:11:26 PDT
I Steps:
Go to
the attached reduction

II Issue:
the black box should be inside of the red box from all edges and not overlapping at the right edges.

III Conclusion: input element inside div and div inside div is rendered incorrectly.
<div style="width:66%; border:2px solid red"><input style="border:2px solid; width:100%;" type="text"></div>
When an input element is contained in div, IE6 and Opera render the input element inside div.

<div style="width:66%; border:2px solid red"><div style="border:2px solid; width:100%; height:10px"></div></div>
When a div is contained in another div, the child div comes out a little bit of the parent div. Only IE6 can render this properly.

IV Other browsers: 
FF2: not ok (FF3: not ok)
Opera: partially ok
IE 6: ok (IE 7: not ok)

V Nightly tested: 31032
Comment 1 jasneet 2008-03-14 16:12:11 PDT
Created attachment 19780 [details]
reduction
Comment 2 Robert Blaut 2008-03-15 02:40:11 PDT
Width property specifies the *content width* of boxes generated by block-level and replaced elements. [http://www.w3.org/TR/CSS21/visudet.html#propdef-width] Content width is a width of space *between* left and right border (excluding border width). The test case is rendered correctly in Webkit. Bug report is INVALID