I like it. However, if we want things to work "auto-magically", we should consider another kind of kind of "automatic" grid-span based on the size of an object (ie: an element spans as many rows/columns as needed for the content to fit in; eg a (min-width: 500px) object would span two columns of 300px). If the "subgrid" behavior takes the auto value (why not) I propose to either rename my own "grid-*-span: auto" proposal [1] to "grid-*-span: fit" or to accomodate its definition to take "display: subgrid" in consideration. [1] http://lists.w3.org/Archives/Public/www-style/2012Aug/0138.html -----Message d'origine----- Basically what's needed is a way for a grid item to itself be a grid whose items in turn participate in its parent's grid. Here's a (very rough) proposal: * Set the grid-span initial value to 'auto'. Have it generally compute to 1. * Define 'display: subgrid' to be an element that * itself is a grid element * determines its own number of rows and columns and uses that as its grid-span in its parent grid * has its items participate in the sizing of the parent gridReceived on Thursday, 9 August 2012 08:38:03 UTC
This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:20 UTC