Re: [csswg-drafts] [css-grid] Ability to have grid items cause cells to be marked as occupied for flow purposes

> Are you sure you're not just seeing a bug in Chrome?

Pretty sure.  I get consistent behavior in Firefox Nightly, Chrome, and Safari when loading up http://meyerweb.com/eric/css/examples/grid/overlaps.html.

The first grid shows images auto-filling into a grid of all fixed-size tracks.  Each image goes into the next “open” cell, even though that may overlap previous images.  I enforced heights and widths through classes for ease of authoring, but imagine images being spit out of a CMS with their exact height and width baked into HTML attributes or inline style.

The second grid shows what I would expect, as an author, where images don’t overlap.  (I had to explicitly assign a grid cell to each image in order to prevent said overlap.)

I’d be fine with adding this capability, but have it only apply to grids with fixed, non-content-dependent track sizes.

-- 
GitHub Notification of comment by meyerweb
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1394#issuecomment-304881982 using your GitHub account

Received on Tuesday, 30 May 2017 13:42:43 UTC