<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 - float:right not working consistently across page loads (Loading-related race condition?)"
href="https://bugs.webkit.org/show_bug.cgi?id=150271">150271</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>float:right not working consistently across page loads (Loading-related race condition?)
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>Mac OS X 10.10
</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>CSS
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>webkit@chrisrebert.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=263362" name="attach_263362" title="Screenshot of incorrect rendering">attachment 263362</a> <a href="attachment.cgi?id=263362&action=edit" title="Screenshot of incorrect rendering">[details]</a></span>
Screenshot of incorrect rendering
Original downstream Bootstrap bug:
<a href="https://github.com/twbs/bootstrap/issues/17913">https://github.com/twbs/bootstrap/issues/17913</a>
Steps to reproduce the problem:
1. Download the ZIP for <a href="https://gist.github.com/cvrebert/14f296e3629e177da6c2">https://gist.github.com/cvrebert/14f296e3629e177da6c2</a>
2. Unzip it.
3. Download <a href="http://code.jquery.com/jquery-1.11.3.min.js">http://code.jquery.com/jquery-1.11.3.min.js</a> to the unzipped folder.
4. Open example.html in WebKit Nightly.
5. While looking at Button 2, refresh the page repeatedly.
What is the expected behavior?
Button 1 and Button 2 should be vertically aligned.
What went wrong?
Sometimes Button 2 renders completely below Button 1, vertically speaking.
In the course of trying to further simplify the testcase, I seemed to observe the following:
* The <div class="hidden"></div> is necessary to manifest the bug.
* Changing it to <div style="display:none;"></div> avoids the bug
* Moving the code for the .hidden class (`.hidden { display: none !important; }`) out of the external CSS file and into the <style> tag in the <head> avoids the bug.
* The bug does not manifest if jQuery is removed, even though the webpage doesn't actually invoke jQuery anywhere.
Based on these observations, I speculate that the bug might be some kind of race condition related to the loading of external assets.
Analogous Chrome bug: <a href="https://code.google.com/p/chromium/issues/detail?id=544290">https://code.google.com/p/chromium/issues/detail?id=544290</a>
Firefox is NOT affected by this bug.
I don't have a Windows box available to test MS Edge.</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>