<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Safari/WebKit ignores vertical padding on a display:table element with 100% height"
href="https://bugs.webkit.org/show_bug.cgi?id=155919">155919</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Safari/WebKit ignores vertical padding on a display:table element with 100% height
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Safari 9
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>OS X 10.11
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>Layout and Rendering
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dholbert@mozilla.com
</td>
</tr>
<tr>
<th>CC</th>
<td>simon.fraser@apple.com
</td>
</tr></table>
<p>
<div>
<pre>STR:
1. Load attached testcase, or this jsfiddle: <a href="https://jsfiddle.net/do8n64Lq/">https://jsfiddle.net/do8n64Lq/</a>
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:
<a href="https://jsfiddle.net/do8n64Lq/1/">https://jsfiddle.net/do8n64Lq/1/</a> (working)
- Replacing the % height with an explicit pixel height.
<a href="https://jsfiddle.net/do8n64Lq/2/">https://jsfiddle.net/do8n64Lq/2/</a> (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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>