W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2017

Re: [csswg-drafts] [css-grid-1] Clarify the reason of limit the rows/cols at grid, and increase it

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Tue, 07 Feb 2017 00:43:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-277862628-1486428205-sysbot+gh@w3.org>
> with grid we can make masonry/pinterest style layout simply and 
elegantly by 1px steps.

Using a many thousands of grid rows of 1px size to do this layout 
isn't elegant, it's an ugly hack.

The Grid spec already motivates why a limit is needed: "Since memory 
is limited", and I'd like to add "and since CPU resources are 
limited".  Using millions of grid cells requires large amounts of 
memory and processing which creates unacceptable latency on slow 
devices.

I agree that the masonry use case is important though, but let's fix 
that in https://github.com/w3c/csswg-drafts/issues/945 in a sane way 
instead.

-- 
GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/1009#issuecomment-277862628
 using your GitHub account
Received on Tuesday, 7 February 2017 00:43:32 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:28 UTC