Skip to content

Commit 9e884b5

Browse files
committed
[css-grid-1] Serialization of track listings is without repeat() notation. w3c#2427
1 parent f3a0873 commit 9e884b5

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

css-grid-1/Overview.bs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,25 +1775,25 @@ Resolved Values</h4>
17751775

17761776
When an element's 'display' is ''grid'' or ''inline-grid'' and it generates a box,
17771777
the <a href="https://www.w3.org/TR/cssom/#resolved-values">resolved value</a>
1778-
of the 'grid-template-rows' and 'grid-template-columns' properties is the used value,
1779-
serialized as follows:
1778+
of the 'grid-template-rows' and 'grid-template-columns' properties is the <a>used value</a>,
1779+
serialized with:
17801780

17811781
<ul>
17821782
<li>
1783-
Every track listed,
1784-
whether implicitly or explicitly created.
1783+
Every track listed individually,
1784+
whether implicitly or explicitly created,
1785+
without using the ''repeat()'' notation.
17851786

17861787
<li>
17871788
Every track size given as a length in pixels,
17881789
regardless of sizing function.
17891790

17901791
<li>
1791-
A contiguous run of two or more tracks that have the same size and associated line names
1792-
may be serialized with the ''repeat()'' notation.
1792+
Adjacent line names collapsed into a single bracketed set.
17931793
</ul>
17941794

1795-
Otherwise, (e.g. when the element has ''display: none'' or is not a grid)
1796-
the resolved value is simply the computed value.
1795+
Otherwise, (e.g. when the element has ''display: none'' or is not a <a>grid container</a>)
1796+
the resolved value is simply the <a>computed value</a>.
17971797

17981798
<div class="example">
17991799
<pre class="lang-html">
@@ -1814,7 +1814,7 @@ Resolved Values</h4>
18141814
&lt;script>
18151815
var gridElement = document.getElementById("grid");
18161816
getComputedStyle(gridElement).gridTemplateColumns;
1817-
// [a] 50px [b] 320px [b c d] repeat(2, [e] 40px) repeat(4, 0px) 50px
1817+
// [a] 50px [b] 320px [b c d e] 40px [e] 40px 0px 0px 0px 0px 50px
18181818
&lt;/script>
18191819
</pre>
18201820
</div>
@@ -4305,6 +4305,11 @@ Major Changes</h4>
43054305
they must be resolved against the inline dimension, as for blocks.
43064306
(<a href="https://github.com/w3c/csswg-drafts/issues/2085">Issue 2085</a>)
43074307

4308+
<li id="change-2017-repeat-serialization">
4309+
Require the used value of a track listing
4310+
to be serialized without using ''repeat()'' notation.
4311+
(<a href="https://github.com/w3c/csswg-drafts/issues/2427">Issue 2427</a>)
4312+
43084313
<li id="change-2017-million-tracks">
43094314
Specify a minimum number of tracks that a UA should support
43104315
(absent memory pressure or similar).

0 commit comments

Comments
 (0)