<?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>147795</bug_id>
          
          <creation_ts>2015-08-07 15:26:01 -0700</creation_ts>
          <short_desc>Error handling padding in box-sizing calculations</short_desc>
          <delta_ts>2022-12-21 13:49:08 -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>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="alan">zalan</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>hyatt</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1115901</commentid>
    <comment_count>0</comment_count>
      <attachid>258534</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-08-07 15:26:01 -0700</bug_when>
    <thetext>Created attachment 258534
Test case showing the improper behavior

WebKit seems to be taking padding into account when performing height calculations, even when in standards mode using &quot;box-sizing: content-box&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1117281</commentid>
    <comment_count>1</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2015-08-13 10:54:42 -0700</bug_when>
    <thetext>Blink changed available logical height behavior about a year ago. It returns content box height now (vs. border box height)

https://src.chromium.org/viewvc/blink?revision=178693&amp;view=revision

@@ -3085,7 +3061,7 @@ LayoutUnit RenderBox::computeReplacedLogicalHeightUsing(Length logicalHeight) co
 
 LayoutUnit RenderBox::availableLogicalHeight(AvailableLogicalHeightType heightType) const
 {
-    return constrainLogicalHeightByMinMax(availableLogicalHeightUsing(style().logicalHeight(), heightType), -1);
+    return constrainContentBoxLogicalHeightByMinMax(availableLogicalHeightUsing(style().logicalHeight(), heightType), -1);
 }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227795</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-09-08 14:06:46 -0700</bug_when>
    <thetext>&lt;rdar://problem/28213830&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1909290</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-31 06:23:51 -0700</bug_when>
    <thetext>I am not able to reproduce this bug using Safari 16.1 and the &quot;red&quot; square is center similar to Chrome Canary 109 and Firefox Nightly 108.

Do we need to anything else? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920218</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-17 03:33:51 -0800</bug_when>
    <thetext>Also we are passing the test (in STP160) from the Chromium patch of Comment 01:

Test Case - https://jsfiddle.net/0ytgLhwn/

Do we need to do anything else?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921206</commentid>
    <comment_count>5</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2022-12-21 13:49:08 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #4)
&gt; Also we are passing the test (in STP160) from the Chromium patch of Comment
&gt; 01:
&gt; 
&gt; Test Case - https://jsfiddle.net/0ytgLhwn/
&gt; 
&gt; Do we need to do anything else?
Nope, this looks to have progressed. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>258534</attachid>
            <date>2015-08-07 15:26:01 -0700</date>
            <delta_ts>2015-08-07 15:26:01 -0700</delta_ts>
            <desc>Test case showing the improper behavior</desc>
            <filename>padding.html</filename>
            <type>text/html</type>
            <size>657</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgPG1ldGEgaHR0cC1lcXVp
dj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgiPgogIDx0
aXRsZT5QYWRkaW5nIGlzc3VlczwvdGl0bGU+CiAgPHN0eWxlIHR5cGU9InRleHQvY3NzIiBtZWRp
YT0ic2NyZWVuIj4KICAgICNjb250YWluZXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsK
ICAgICAgICBoZWlnaHQ6IDYwMHB4OwogICAgICAgIHBhZGRpbmctYm90dG9tOiAxMDAwcHg7CiAg
ICAgICAgYm9yZGVyOiAxcHggc29saWQgYmx1ZTsKICAgIH0KCiAgICAjYm94IHsKICAgICAgcG9z
aXRpb246IHJlbGF0aXZlOwogICAgICB0b3A6IDUwJTsKICAgICAgaGVpZ2h0OiAxMDBweDsKICAg
ICAgd2lkdGg6IDEwMHB4OwogICAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZWQ7CiAgICAgIG1hcmdp
bjogMDsKICAgIH0KICA8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5PgogICAgPGRpdj5UaGUgYm94IHNo
b3VsZCBiZSBjZW50ZXJlZCBpbiB0aGUgdmlld3BvcnQsIHJlZ2FyZGxlc3Mgb2YgcGFkZGluZy48
L2Rpdj4KICAgIDxkaXYgaWQ9ImNvbnRhaW5lciI+CiAgICAgICAgPGRpdiBpZD0iYm94Ij48L2Rp
dj4KICAgIDwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>