[Webkit-unassigned] [Bug 170445] New: space-evenly misbehaves with flexbox

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 4 02:45:44 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=170445

            Bug ID: 170445
           Summary: space-evenly misbehaves with flexbox
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: florian at rivoal.net

Created attachment 306166

  --> https://bugs.webkit.org/attachment.cgi?id=306166&action=review

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 https://github.com/w3c/web-platform-tests/pull/5336) 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170404/de01d926/attachment-0001.html>


More information about the webkit-unassigned mailing list