<?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>137693</bug_id>
          
          <creation_ts>2014-10-14 07:13:27 -0700</creation_ts>
          <short_desc>box-sizing border-box not working on input field inside table cell with percentage height</short_desc>
          <delta_ts>2017-02-22 12:44:37 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Schaus">martin.schaus</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>pguerrant</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1041554</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Schaus">martin.schaus</who>
    <bug_when>2014-10-14 07:13:27 -0700</bug_when>
    <thetext>box-sizing border-box not working on input field inside table cell with percentage height.
I think accidently the inner padding-top and padding-left of the input field is added to the table cell, as the effect increases if you set a higher padding value to the input element.
Try the below example (Chrome wrong, IE10 ok, FF ok) 

&lt;!doctype html&gt;

&lt;html&gt;
&lt;body&gt;

	&lt;div style=&quot;height: 100px; width: 100px&quot;&gt;
		&lt;input style=&quot;box-sizing: border-box; padding 10px; height: 100%; width: 100%&quot; value=&quot;correct&quot;&gt;

	&lt;/div&gt;
	&lt;div style=&quot;height: 100px; width: 100px&quot;&gt;
		&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;height: 100%; width: 100%;&quot;&gt;
			&lt;tbody&gt;
				&lt;tr&gt;
					&lt;td class=&quot;&quot; style=&quot;height: 100%;&quot;&gt;
                                               &lt;input type=&quot;text&quot; style=&quot;height: 100%; width: 100%; box-sizing: border-box; padding: 10px;&quot; value=&quot;wrong&quot;&gt;
                                          &lt;/td&gt;
				&lt;/tr&gt;
			&lt;/tbody&gt;
		&lt;/table&gt;
	&lt;/div&gt;


&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1041555</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Schaus">martin.schaus</who>
    <bug_when>2014-10-14 07:14:26 -0700</bug_when>
    <thetext>Sorry, i meant padding-top and padding-bottom</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1042745</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Schaus">martin.schaus</who>
    <bug_when>2014-10-20 00:25:38 -0700</bug_when>
    <thetext>This becomes critical as it worked before and a layout editor relies on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1279994</commentid>
    <comment_count>3</comment_count>
      <attachid>302425</attachid>
    <who name="Phil">pguerrant</who>
    <bug_when>2017-02-22 12:43:41 -0800</bug_when>
    <thetext>Created attachment 302425
Test Case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1279995</commentid>
    <comment_count>4</comment_count>
    <who name="Phil">pguerrant</who>
    <bug_when>2017-02-22 12:44:37 -0800</bug_when>
    <thetext>I&apos;ve attached an additional test case that demonstrates the issue using a pair of divs with display table and table-cell with an input inside the table cell using 100% height.

It would be really great if we could get this fixed.  Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>302425</attachid>
            <date>2017-02-22 12:43:41 -0800</date>
            <delta_ts>2017-02-22 12:43:41 -0800</delta_ts>
            <desc>Test Case</desc>
            <filename>webkit-input-box-model-bug.html</filename>
            <type>text/html</type>
            <size>776</size>
            <attacher name="Phil">pguerrant</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICAgIDx0aXRsZT5XZWJraXQgSW5wdXQgSW4g
VGFibGUtQ2VsbCBCb3ggTW9kZWwgQnVnPC90aXRsZT4KCiAgICA8c3R5bGU+CiAgICAgICAgLnRh
YmxlIHsKICAgICAgICAgICAgZGlzcGxheTogdGFibGU7CiAgICAgICAgICAgIHdpZHRoOiAxMDBw
eDsKICAgICAgICAgICAgaGVpZ2h0OiAxMDBweDsKICAgICAgICB9CgogICAgICAgIC50YWJsZS1j
ZWxsIHsKICAgICAgICAgICAgZGlzcGxheTogdGFibGUtY2VsbDsKICAgICAgICB9CgogICAgICAg
IC5pbnB1dCB7CiAgICAgICAgICAgIHBhZGRpbmc6IDEwcHg7CiAgICAgICAgICAgIGJvcmRlcjog
MDsKICAgICAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgICAgICBib3gtc2l6aW5nOiBib3Jk
ZXItYm94OwogICAgICAgIH0KICAgIDwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+CiAgICAgICAgPGRp
diBjbGFzcz0idGFibGUiPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ0YWJsZS1jZWxsIj4KICAg
ICAgICAgICAgICAgIDxpbnB1dCBpZD0iaW5wdXQiIGNsYXNzPSJpbnB1dCIvPgogICAgICAgICAg
ICA8L2Rpdj4KICAgICAgICA8L2Rpdj4KCjxzY3JpcHQ+CiAgICB3aW5kb3cub25sb2FkID0gZnVu
Y3Rpb24oKSB7CiAgICAgICAgLy8gT3V0cHV0OiA4MCwgc2hvdWxkIGJlIDEwMAogICAgICAgIGNv
bnNvbGUubG9nKGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdpbnB1dCcpLm9mZnNldEhlaWdodCk7
CiAgICB9Owo8L3NjcmlwdD4KCgo8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>