Skip to content

Commit 6a18a4b

Browse files
committed
[css-grid] Allow percentage-based tracks to back-compute the percentage per WG resolution. This is optional for now; still under discussion in WG (globally across CSS).
1 parent 496a74b commit 6a18a4b

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

css-grid/Overview.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,9 +1346,14 @@ Explicit Track Sizing: the 'grid-template-rows' and 'grid-template-columns' prop
13461346
A non-negative percentage, as defined by CSS3 Values. [[!CSS3VAL]]
13471347
<<percentage>> values are relative to the <a>inline size</a> of the <a>grid container</a> in column <a>grid tracks</a>,
13481348
and the <a>block size</a> of the <a>grid container</a> in row <a>grid tracks</a>.
1349-
If the <a lt="inline size">inline</a> or <a>block size</a> of the <a>grid container</a>
1350-
is <a>indefinite</a>,
1351-
<<percentage>> values relative to that size are treated as <a value for=width>auto</a>.
1349+
If the size of the <a>grid container</a>
1350+
depends on the size of its tracks,
1351+
then the <<percentage>>
1352+
must be treated as <a value for=width>auto</a>.
1353+
The UA <em>may</em> adjust the intrinsic size contributions of the track
1354+
to the size of the <a>grid container</a>
1355+
and increase the final size of the track
1356+
by the minimum amount that would result in honoring the percentage.
13521357

13531358
<dt><dfn><<flex>></dfn>
13541359
<dd>

css-grid/issues-wd-20160519.bsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,6 @@ Summary: Back-compute percentage gaps
212212
From: Mats Palmgren
213213
Comment: https://github.com/w3c/csswg-drafts/issues/472
214214
Response: https://github.com/w3c/csswg-drafts/issues/472#issuecomment-248655700
215-
Open: Indeterminite (made undefined)
215+
Closed: Indeterminite (made undefined)
216216
Resolved: TPAC 2016
217217
----

css-grid/issues-wd-20160519.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,13 @@ <h1>CSS Grid Layout Level 1 Disposition of Comments for 2016-05-19 WD</h1>
239239
<span>Response: <a href='https://github.com/w3c/csswg-drafts/issues/494#issuecomment-248465154'>https://github.com/w3c/csswg-drafts/issues/494#issuecomment-248465154</a></span>
240240
<span class="a">Closed: Accepted</span>
241241
<span>Resolved: Editorial</span></pre>
242-
<pre class='open ' id='issue-26'>
242+
<pre class=' ' id='issue-26'>
243243
<span>Issue 26. <a href='#issue-26'>#</a></span>
244244
<span>Summary: Back-compute percentage gaps</span>
245245
<span>From: Mats Palmgren</span>
246246
<span>Comment: <a href='https://github.com/w3c/csswg-drafts/issues/472'>https://github.com/w3c/csswg-drafts/issues/472</a></span>
247247
<span>Response: <a href='https://github.com/w3c/csswg-drafts/issues/472#issuecomment-248655700'>https://github.com/w3c/csswg-drafts/issues/472#issuecomment-248655700</a></span>
248-
<span class="">Open: Indeterminite (made undefined)</span>
248+
<span class="">Closed: Indeterminite (made undefined)</span>
249249
<span>Resolved: TPAC 2016</span></pre>
250250
<script>
251251
(function () {

0 commit comments

Comments
 (0)