W3C home > Mailing lists > Public > www-style@w3.org > February 2012

[css3-grid-layout] [css3-layout] default layout of children

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 20 Feb 2012 16:41:49 +0100
Message-ID: <4F4269BD.9020707@inkedblade.net>
To: "www-style@w3.org" <www-style@w3.org>
Neither Template Layout nor Grid Layout seems to have a very good default
way of handling content. Grid afaict winds up positioning unpositioned
things very randomly, depending on how positioned content is interleaved;
although maybe I'm misreading the algorithm. Template offers the default
slot option, which seems a good idea to me; but the fallback behavior of
dumping things into the first slot doesn't seem ideal.

I don't have a good answer here, but if it's called out as an issue, maybe
someone will come up with a good idea.

IMO layout systems should avoid dataloss by default, which means
   - content doesn't disappear
   - content doesn't stack on top of each other
   - content doesn't overflow
unless you explicitly ask for it.

One possibility is to dump all the remaining content into a new row at the
bottom of the grid.

Received on Monday, 20 February 2012 15:52:48 UTC

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