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

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.
   http://dev.w3.org/csswg/css-grid/#overlarge-grids

Let us know if this addresses your concern.

~fantasai and TJ

Received on Friday, 8 May 2015 23:54:53 UTC