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

Re: [css-grid] Capping the size of grids?

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 08 May 2015 16:54:25 -0700
Message-ID: <554D4CB1.40900@inkedblade.net>
To: www-style@w3.org
On 01/12/2015 12:16 PM, Rossen Atanassov wrote:
>> -----Original Message-----
>> From: fantasai [mailto:fantasai.lists@inkedblade.net]
>> Sent: Thursday, January 8, 2015 3:28 PM
>>     # Since memory is not infinite, UAs may clamp the the possible size
>>     # of the grid to within a UA-defined limit, dropping all lines
>>     # outside that limit. If a grid item spans outside this limit, its
>>     # span must be clamped to the last line of the limited grid. If a
>>     # grid item is placed outside this limit, its span must be truncated
>>     # to 1 and the item repositioned into the last grid track on that
>>     # side of the grid.
> The current wording sounds good. I would like to see a simple formula illustrating this error handling in terms of position and size.
> Example:
> Assume grid line allowed bounds are A to N.
> A grid item is specified as start-line : M and span : K
> Position of the start edge of a grid item is computed as max(min(M, N-1), A)
> Spanning is ignored and clamped to 1.

Hi Rossen,
Instead of a formula, we added an example, since this is easier to understand
for most people, and should be equally clear.

Let us know if this addresses your concern.

~fantasai and TJ
Received on Friday, 8 May 2015 23:54:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC