<?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>155919</bug_id>
          
          <creation_ts>2016-03-25 21:23:42 -0700</creation_ts>
          <short_desc>Safari/WebKit ignores vertical padding on a display:table element with 100% height</short_desc>
          <delta_ts>2025-12-08 04:16:31 -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>Safari 9</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>OS X 10.11</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=303746</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Holbert">dholbert</reporter>
          <assigned_to name="Karl Dubost">karlcow</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1178240</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2016-03-25 21:23:42 -0700</bug_when>
    <thetext>STR:
 1. Load attached testcase, or this jsfiddle: https://jsfiddle.net/do8n64Lq/

EXPECTED OUTPUT:
  The orange area should extend outside of its container.  (Its height:100% resolves to the height of its container -- and then it has explicit pixel-valued vertical padding on top of that, which should make it taller.) 


ACTUAL OUTPUT:
  The orange area is only as tall as its container. (It seems to be ignoring its padding.) 

Chrome 50 and Safari 9 give ACTUAL OUTPUT.
Firefox and Edge both give EXPECTED OUTPUT.

I can adjust the testcase to make Chrome and Safari give EXPECTED OUTPUT with either of the following tweaks:
 - Changing the orange thing to be display:block instead of display:table:
    https://jsfiddle.net/do8n64Lq/1/  (working)
 - Replacing the % height with an explicit pixel height.
    https://jsfiddle.net/do8n64Lq/2/  (working)

So, this works correctly with blocks in general, and with tables that have an explicit pixel height -- but it does not work with percent-height tables, as demonstrated in the attached testcase (and the original version of my jsfiddle with no /[number]/ suffix)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1178241</commentid>
    <comment_count>1</comment_count>
      <attachid>274972</attachid>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2016-03-25 21:24:26 -0700</bug_when>
    <thetext>Created attachment 274972
testcase 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1178286</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2016-03-26 10:53:35 -0700</bug_when>
    <thetext>Chrome/Blink instance of this bug:
 https://bugs.chromium.org/p/chromium/issues/detail?id=598134</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903482</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-05 11:54:53 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari Technology Preview 154 and it show &quot;organe&quot; bar to be constrained within container while all other browsers (Chrome Canary 108 and Firefox Nightly 107) being overflowed.

It was fixed in Chrome / Blink due to TableNg project in Chrome 91. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951278</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-25 23:50:06 -0700</bug_when>
    <thetext>table-has-box-sizing-border-box-002.html

^ https://wpt.fyi/results/css/css-tables/table-has-box-sizing-border-box-002.html?label=master&amp;label=experimental&amp;aligned=&amp;q=table-has-box-sizing-border-box

Live link - http://wpt.live/css/css-tables/table-has-box-sizing-border-box-002.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2011945</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-02-08 15:27:08 -0800</bug_when>
    <thetext>&lt;rdar://problem/122587242&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2162190</commentid>
    <comment_count>6</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-12-01 07:12:40 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/54635</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>274972</attachid>
            <date>2016-03-25 21:24:26 -0700</date>
            <delta_ts>2016-03-25 21:24:26 -0700</delta_ts>
            <desc>testcase 1</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>497</size>
            <attacher name="Daniel Holbert">dholbert</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHN0eWxlPgogICAgICAuY2F0SW1n
QmtnIHsKICAgICAgICBoZWlnaHQ6IDEwMHB4OwogICAgICAgIHdpZHRoOiAyMDBweDsKICAgICAg
ICBib3JkZXI6IDJweCBzb2xpZCBncmF5OwogICAgICB9CgogICAgICAudGJsIHsKICAgICAgICBk
aXNwbGF5OiB0YWJsZTsKICAgICAgICB3aWR0aDogMjBweDsKICAgICAgICBoZWlnaHQ6IDEwMCU7
CiAgICAgICAgYmFja2dyb3VuZDogb3JhbmdlOwogICAgICAgIHBhZGRpbmctYm90dG9tOiA1MHB4
OwogICAgICB9CgogICAgPC9zdHlsZT4KICA8L2hlYWQ+CiAgPGJvZHk+CiAgICBPcmFuZ2UgZWxl
bWVudCBzaG91bGQgc3RpY2sgb3V0c2lkZSBvZiBpdHMgY29udGFpbmVyIChiZWNhdXNlIGl0IGhh
cyAxMDAlIGhlaWdodCBwbHVzIDUwcHggb2YgdmVydGljYWwgcGFkZGluZykuCiAgICA8ZGl2IGNs
YXNzPSJjYXRJbWdCa2ciPgogICAgICA8ZGl2IGNsYXNzPSJ0YmwiPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>