W3C home > Mailing lists > Public > www-style@w3.org > April 2016

Re: [css-sizing][css-grid] Definite/indefinite size in positioned/floated grid containers

From: Manuel Rego Casasnovas <rego@igalia.com>
Date: Thu, 21 Apr 2016 11:26:12 +0200
To: www-style@w3.org
Message-ID: <57189CB4.2060201@igalia.com>

On 21/04/16 09:44, Manuel Rego Casasnovas wrote:
>> Testcase:
>>   http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=4087
> 
> BTW, the item in the 3rd case "Grid (50% track size)" would have 100px
> width because it has "min-width: auto;". The track would be 50px.
> So, unless you specify "min-width: 0px;", the behavior would be
> different than the one for blocks.

And one more thing, the grid container would be 100px and the only track
in that container would be 50px. I'm not sure if that would be the
expected behavior when in the section about intrinsic sizes of a grid we've:
"The max-content size of a grid container is the sum of the grid
 container’s track sizes in the appropriate axis, when the grid is
 sized under a max-content constraint.

 The min-content size of a grid container is the sum of the grid
 container’s track sizes in the appropriate axis, when the grid is
 sized under a min-content constraint."

Again I'm not sure if this would work (or not) the same for a
positioned/floated grid container than for a grid container with "width:
min-content;".
E.g.
  <div style="position: absolute; font: 25px/1 Ahem;">
    <div style="width: 50%;">XXXX</div>
  </div>
vs
 <div style="width: min-content; font: 25px/1 Ahem;">
   <div style="width: 50%;">XXXX</div>
 </div>

Bye,
  Rego

[1] https://drafts.csswg.org/css-grid/#intrinsic-sizes
Received on Thursday, 21 April 2016 09:26:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:02 UTC