<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 - Incorrect initial rendering with Tab characters and white-space:pre/padding-left"
href="https://bugs.webkit.org/show_bug.cgi?id=150029">150029</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect initial rendering with Tab characters and white-space:pre/padding-left
</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>Mac 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>aroben@webkit.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=262887" name="attach_262887" title="test file to demonstrate the bug">attachment 262887</a> <a href="attachment.cgi?id=262887&action=edit" title="test file to demonstrate the bug">[details]</a></span>
test file to demonstrate the bug
Elements with padding-left and white-space:pre that contain a Tab character render differently depending on whether the element has any element children.
To reproduce:
1. Open the attached tab-test.html
2. See that the two pairs of example lines are not left-aligned with each other
3. Select the text in the page
Now the example lines *are* left-aligned with each other. See attached GIF for an animation demonstrating the behavior.
The only difference between the lines in each pair is that one of them contains a <span> and the other does not.
This affects code rendering on github.com. This particular example was reduced from <a href="https://github.com/phonyphonecall/mb-gnu-docker-mgr/blob/7a8e67de3389a3ebf8f82e2d4ceab2ccedb5d360/mb-gnu-docker-mgr.go">https://github.com/phonyphonecall/mb-gnu-docker-mgr/blob/7a8e67de3389a3ebf8f82e2d4ceab2ccedb5d360/mb-gnu-docker-mgr.go</a></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>