<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 - Flex box container: some items do not render if added dynamically"
href="https://bugs.webkit.org/show_bug.cgi?id=160551">160551</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Flex box container: some items do not render if added dynamically
</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>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>jeanfelixg@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>simon.fraser@apple.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=285325" name="attach_285325" title="Sample to reproduce the issue.">attachment 285325</a> <a href="attachment.cgi?id=285325&action=edit" title="Sample to reproduce the issue.">[details]</a></span>
Sample to reproduce the issue.
Webkit nightly and Safari tech preview both have the issue.
When adding HTML dynamically into a flex box containers, some of the elements are not painted.
A page resize is needed to reveal all its content. Mouse hover reveals the underlaying elements.
I extracted a sample from an app im working on... I used a setTimeout to simulate an XHR request for dynamic HTML content.
So, in the sample, there are flex containers inside other flex container (which have other elements that i removed for brevity) and it adds the dynamic content in "#jsSectionContentsimpleList57a33a09696da". The dynamic content is also a flex box container with both a section (blue) and a footer (green).
Open flex_draw.html from the zip to have a look.
P.S. Chrome, FF, IE11, Edge render it without issue.
Thanks!</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>