W3C home > Mailing lists > Public > www-style@w3.org > August 2015

Re: [css-grid] Containing block for abs.pos. grid items when the grid overflows

From: fantasai <fantasai.lists@inkedblade.net>
Date: Sun, 09 Aug 2015 19:43:54 -0400
Message-ID: <55C7E5BA.7020004@inkedblade.net>
To: Mats Palmgren <mats@mozilla.com>, "www-style@w3.org" <www-style@w3.org>
On 03/25/2015 10:49 AM, Mats Palmgren wrote:
> Hi,
> Can someone clarify how to calculate the containing block (CB)
> for an abs.pos. grid item that has "grid-column: 2 / auto"
> when line 2 is outside padding-area (on the right side)?
> I can't find anything in the Grid spec that defines this case.
> (example included below)
> I think it's reasonable to honor the given start line
> position and clamp the CB's width to zero, so that's what
> I've implemented.  (This also seems to be what Chrome Canary
> currently implements, fwiw.)
> I suspect the same problem can also occur (mirrored) on the
> left side for "grid-column: auto / 1" (and using
> "justify-content:end" or something like that to push line 1
> outside (to the left of) the padding area).  It seems
> reasonable to keep the end line position and clamp the CB's
> width in this case too - for symmetry. (ditto for grid-row)

I believe this was resolved at the New York F2F
and edited into the latest draft

Let me know if there are any problems with that!

Received on Sunday, 9 August 2015 23:44:22 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 9 August 2015 23:44:23 UTC