<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 - CSS line-height computes ok, renders incorrectly"
href="https://bugs.webkit.org/show_bug.cgi?id=155286">155286</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>CSS line-height computes ok, renders incorrectly
</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>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>OS X 10.10
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Major
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>CSS
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tbredin@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Unitless line heights appear to have an issue where the size of the element rendered to screen sometimes renders at a different size to the computed line-height. Take the following CSS:
html {
font-size: 125%; // 20px computed size
}
p {
font-size: 1.5rem; // 30px computed size
line-height: 1.33333333333; // 40px computed size
}
Here's a codepen that demonstrates the issue: <a href="http://codepen.io/tbredin/pen/ONNGmY">http://codepen.io/tbredin/pen/ONNGmY</a>
In the inspector this reports the computed line-height as 40px. However the element only takes up 39px of space in the browser.
Over long distances this can add up to a big error, is pretty severe (for example; vertical rhythm systems across multiple columns are busted really badly!)</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>