<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 - space-evenly misbehaves with flexbox"
href="https://bugs.webkit.org/show_bug.cgi?id=170445">170445</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>space-evenly misbehaves with flexbox
</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>CSS
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>florian@rivoal.net
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=306166" name="attach_306166" title="failing test case">attachment 306166</a> <a href="attachment.cgi?id=306166&action=edit" title="failing test case">[details]</a></span>
failing test case
"justify-content: space-evenly" is implemented for grid layout, but not for flexbox, where instead it behaves as flex-start.
However, since it parses correctly, it is not possible to use the cascade (or @supports) fallback on some other value, making something like this unusable:
.foo {
display: flex;
justify-content: space-around; /* fallback if the next line is not supported */
justify-content: space-evenly;
}
Ideally, space-evenly should be implemented in full for flexbox as well (mozilla already has it), but if that's too consuming for a quick fix, as a stop gap measure, using its default fallback alignment (center) would be much better than flex-start. Using space-around would probably be OK as well, as these two values are somewhat close.
I've attached a test-case (also submitted to wpt <a href="https://github.com/w3c/web-platform-tests/pull/5336">https://github.com/w3c/web-platform-tests/pull/5336</a>) that currently fails, and would pass if either a full implementation was done, or if a fallback to either center or space-around was implemented instead.</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>