<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-grid] Empty grid without explicit tracks shouldn't have any size"
href="https://bugs.webkit.org/show_bug.cgi?id=155197">155197</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[css-grid] Empty grid without explicit tracks shouldn't have any size
</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>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</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>rego@igalia.com
</td>
</tr>
<tr>
<th>CC</th>
<td>simon.fraser@apple.com
</td>
</tr></table>
<p>
<div>
<pre>We've a problem in our grid layout code, we're assuming we always have a m_grid of 1x1 as minimum.
Because of that we can have an empty grid of 200x200 like in the attached example:
<div style="display: -webkit-grid; width: -webkit-min-content; height: -webkit-min-content; background: cyan; -webkit-grid-auto-columns: 200px; -webkit-grid-auto-rows: 200px;">
</div>
The grid should actually be 0x0, as it has no items and no explicit tracks.
Check it live at: <a href="https://jsbin.com/yavoyek/1/edit?html,css,output">https://jsbin.com/yavoyek/1/edit?html,css,output</a>
JFTR, this issue is also present in Blink: <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=562167">https://bugs.chromium.org/p/chromium/issues/detail?id=562167</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>