W3C home > Mailing lists > Public > www-style@w3.org > June 2014

Re: [css-grid] Auto-placement algorithm sparse doubt

From: Henrik Andersson <henke@henke37.cjb.net>
Date: Thu, 26 Jun 2014 23:47:12 +0200
Message-ID: <53AC94E0.2030109@henke37.cjb.net>
To: W3C CSS Mailing List <www-style@w3.org>
Manuel Rego Casasnovas skriver:
> The result will be like in the following diagram:
>
> -------------
> | A | B | B |
> -------------
> | C | B | B |
> -------------
> |   |   |   |
> -------------
>
> I guess that in this case, we can consider that elements appear
> out-of-order (which shouldn't happen in sparse mode).
>
> However, I'm wondering if in step 3), the auto-placement cursor should
> be set to 2/3 (the last occupied cell) instead of 1/2 (the first one).
> In that case "C" will be placed in 3/1.
> And the result would be something like this:
>
> -------------
> | A | B | B |
> -------------
> |   | B | B |
> -------------
> | C |   |   |
> -------------
>
Do note that the dense variant is defined as the sparse variant, but
with the cursor being reset each time. Be careful not to break this trick.

---
Detta epostmeddelande innehåller inget virus eller annan skadlig kod för avast! antivirus är aktivt.
http://www.avast.com
Received on Thursday, 26 June 2014 21:47:52 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:22 UTC