<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>13073</bug_id>
          
          <creation_ts>2007-03-14 12:17:57 -0700</creation_ts>
          <short_desc>XHTML: CSS width of 100% on &lt;input type=&quot;text&quot;&gt; tag renders wider than it should</short_desc>
          <delta_ts>2007-03-14 17:40:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>420+</version>
          <rep_platform>Mac (PowerPC)</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.slvdweller.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Michael C. Rael">rael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18907</commentid>
    <comment_count>0</comment_count>
    <who name="Michael C. Rael">rael</who>
    <bug_when>2007-03-14 12:17:57 -0700</bug_when>
    <thetext>Visit http://www.slvdweller.com and notice the &quot;Quicksearch&quot; field in the left-hand column of the main content area (near the top of the white content area). The input field is an &lt;input type=&quot;text&quot;&gt; field, and its width goes all the way to the right edge of the column, but it should only go to the edge where the padding begins.

The CSS file styles this xhtml element as follows:

input {width:100%;}

This page is served as application/xhtml+xml, so the XHTML CSS rules would apply. Safari 2.0.4 (419.3) renders the input box properly, as does Opera 9.10.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18908</commentid>
    <comment_count>1</comment_count>
    <who name="Michael C. Rael">rael</who>
    <bug_when>2007-03-14 12:18:40 -0700</bug_when>
    <thetext>The bug appears on the nightly build dated 2007-03-14.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18927</commentid>
    <comment_count>2</comment_count>
    <who name="Michael C. Rael">rael</who>
    <bug_when>2007-03-14 17:21:36 -0700</bug_when>
    <thetext>You can see the same results in a much smaller XHTML file:

http://www.slvdweller.com/uploads/input_test.xhtml
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18928</commentid>
    <comment_count>3</comment_count>
    <who name="Michael C. Rael">rael</who>
    <bug_when>2007-03-14 17:38:05 -0700</bug_when>
    <thetext>Even with no external stylesheet:

http://www.slvdweller.com/uploads/input_test2.xhtml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18929</commentid>
    <comment_count>4</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-03-14 17:38:40 -0700</bug_when>
    <thetext>This rendering is correct.  In strict mode, WinIE7, Firefox and Safari nightlies all exclude border and padding on the textfield from the width.  (In CSS terms, inputs use box-sizing: content-box in strict mode and box-sizing: border-box in quirks mode.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18825</commentid>
    <comment_count>5</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-03-14 17:40:45 -0700</bug_when>
    <thetext>Safari nightlies now treat the border/padding within Aqua textfields as real CSS border/padding.  You can add box-sizing: border-box if you want to preserve the old behavior.  Similarly in Firefox you can use -moz-box-sizing.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>