Skip to content

Commit e4dc7b6

Browse files
committed
[css-grid-3] Fix masonry-template-tracks grammar to support mixing intrinsic tracks and auto repeats.
1 parent 79dd950 commit e4dc7b6

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

css-grid-3/Overview.bs

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -571,25 +571,33 @@ Masonry Track Specification</h3>
571571

572572
<pre class=propdef>
573573
Name: masonry-template-tracks
574-
Value: <<'grid-template-columns'>>
574+
Value: none | <<track-list>> | <<masonry-auto-track-list>> | subgrid <<line-name-list>>?
575575
Initial: repeat(auto-areas, auto)
576576
Applies to: [=masonry containers=]
577577
Inherited: no
578-
Percentages: refer to correspodning dimension of the content area
578+
Percentages: refer to corresponding dimension of the content area
579579
Computed value: by computed value type per item in the [=computed track list=]
580580
Animation type: if list lengths match, by [=computed value=] type; otherwise, discrete
581581
</pre>
582582

583-
'masonry-template-tracks' has the same syntax and interpretation as 'grid-template-columns',
584-
but a different initial value.
583+
The syntax of 'masonry-template-tracks' is a superset of 'grid-template-columns';
584+
all shared values have identical interpretations.
585+
(The additional values are that <<masonry-auto-track-list>>,
586+
unlike <<auto-track-list>> in 'grid-template-columns',
587+
allows intrinsic sizes to be combined with auto repetition;
588+
see [[#masonry-intrinsic-repeat]] for details.)
585589

586-
(Instead of defaulting to no tracks, as in Grid Layout,
587-
it defaults to matching 'masonry-template-areas', if possible,
588-
or otherwise filling the [=masonry container=]
589-
with as many ''grid-template-columns/auto'' tracks as possible.)
590+
It also has a different initial value:
591+
''repeat(auto-areas, auto)'' rather than ''grid-template-columns/none''.
590592

591593
ISSUE(10869): What should be the initial value?
592594

595+
<pre class=prod>
596+
<dfn>&lt;masonry-auto-track-list></dfn> = [ <<line-names>>? [ <<track-size>> | <<track-repeat>> ] ]*
597+
<<line-names>>? <<auto-repeat>> <<line-names>>?
598+
[ [ <<track-size>> | <<track-repeat>> ] <<line-names>>? ]*
599+
</pre>
600+
593601
<pre class=propdef>
594602
Name: masonry-template-areas
595603
Value: none | <<string>>

0 commit comments

Comments
 (0)