[Webkit-unassigned] [Bug 155197] New: [css-grid] Empty grid without explicit tracks shouldn't have any size

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 8 14:55:19 PST 2016


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

            Bug ID: 155197
           Summary: [css-grid] Empty grid without explicit tracks
                    shouldn't have any size
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rego at igalia.com
                CC: simon.fraser at apple.com

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: https://jsbin.com/yavoyek/1/edit?html,css,output

JFTR, this issue is also present in Blink: https://bugs.chromium.org/p/chromium/issues/detail?id=562167

-- 
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/20160308/1ef3c2d0/attachment-0001.html>


More information about the webkit-unassigned mailing list