@@ -186,25 +186,6 @@ One-dimensional Grid Layout</h4>
186
186
</figure>
187
187
</div>
188
188
189
- <h3 id="alternative-proposals">
190
- Alternative Syntax Proposals</h3>
191
-
192
- <div class="issue">
193
- The masonry layout feature of this specification is drafted with two different syntaxes
194
- to promote debate and discussion of these two alternatives.
195
-
196
- <dl>
197
- <dt> <dfn noexport><span class="option grid">Grid-integrated Option</span></dfn>
198
- <dd>
199
- In this syntax model, [=masonry layout=] is integrated into the [=grid layout=] model,
200
- re-using all of the 'grid-*' properties.
201
-
202
- <dt> <dfn noexport><span class="option masonry">Grid-independent Option</span></dfn>
203
- <dd>
204
- In this syntax model, [=masonry layout=] is its own 'display' type,
205
- and has its own parallel set of 'masonry-*' properties.
206
- </dl>
207
- </div>
208
189
209
190
<h3 id="values">
210
191
Value Definitions</h3>
@@ -595,84 +576,17 @@ Masonry Track Specification</h2>
595
576
thus, the tracks themselves must already have a definite size
596
577
so that the items know their [=available space=] during layout.
597
578
598
- <section class="option grid">
599
579
<h3 id="masonry-track-grid-option">
600
- <span class="option grid">Grid-integrated Option:</span> Declaring Masonry Track Templates: the 'grid-template-*' properties</h3>
580
+ Declaring Masonry Track Templates: the 'grid-template-*' properties</h3>
601
581
602
582
The 'grid-template-*' and 'grid-auto-rows' /'grid-auto-columns' properties
603
583
(and their shorthands)
604
584
apply in the [=grid axis=] of the [=masonry container=]
605
585
and establish tracks just as on regular [=grid containers=] .
586
+ (They are ignored in the [=stacking axis=] .)
606
587
607
588
ISSUE(10869): What should be the initial track listing?
608
- </section>
609
-
610
- <section class="option masonry">
611
- <h3 id="masonry-track-masonry-option">
612
- <span class="option masonry">Grid-independent Option:</span> Declaring Masonry Track Templates: the 'masonry-template-*' properties</h3>
613
-
614
- Tracks in the [=grid axis=] of a [=masonry container=]
615
- are established with 'masonry-template-tracks' ,
616
- 'masonry-template-areas' ,
617
- and 'masonry-auto-tracks' .
618
-
619
- <pre class=propdef>
620
- Name : masonry-template-tracks
621
- Value : none | <<track-list>> | <<masonry-auto-track-list>> | subgrid <<line-name-list>>?
622
- Initial : repeat(auto-areas, auto)
623
- Applies to : [=masonry containers=]
624
- Inherited : no
625
- Percentages : refer to corresponding dimension of the content area
626
- Computed value : by computed value type per item in the [=computed track list=]
627
- Animation type : if list lengths match, by [=computed value=] type; otherwise, discrete
628
- </pre>
629
-
630
- The syntax of 'masonry-template-tracks' is a superset of 'grid-template-columns' ;
631
- all shared values have identical interpretations.
632
- (The additional values are that <<masonry-auto-track-list>> ,
633
- unlike <<auto-track-list>> in 'grid-template-columns' ,
634
- allows intrinsic sizes to be combined with auto repetition;
635
- see [[#masonry-intrinsic-repeat]] for details.)
636
589
637
- It also has a different initial value:
638
- ''repeat(auto-areas, auto)'' rather than ''grid-template-columns/none'' .
639
-
640
- ISSUE(10869): What should be the initial value?
641
-
642
- <pre class=prod>
643
- <dfn><masonry-auto-track-list></dfn> = [ <<line-names>> ? [ <<track-size>> | <<track-repeat>> ] ]*
644
- <<line-names>> ? <<auto-repeat>> <<line-names>> ?
645
- [ [ <<track-size>> | <<track-repeat>> ] <<line-names>> ? ]*
646
- </pre>
647
-
648
- <pre class=propdef>
649
- Name : masonry-template-areas
650
- Value : none | <<string>>
651
- Initial : none
652
- Applies to : [=masonry containers=]
653
- Inherited : no
654
- Percentages : n/a
655
- Computed Value : the keyword ''masonry-template-values/none'' or a string
656
- Canonical Order : per grammar
657
- Animation type : discrete
658
- </pre>
659
-
660
- 'masonry-template-areas' has the same syntax and interpretation as 'grid-template-areas' ,
661
- except it only takes a single string defining one "row" of area names.
662
-
663
- <pre class=propdef>
664
- Name : masonry-auto-tracks
665
- Value : <<'grid-auto-columns'>>
666
- Initial : auto
667
- Applies to : grid containers
668
- Inherited : no
669
- Percentages : refer to corresponding dimension of the content area
670
- Computed value : a [=computed track list=]
671
- Canonical order : per grammar
672
- Animation type : if the list lengths match, by computed value type per item; discrete otherwise
673
- </pre>
674
-
675
- 'masonry-auto-tracks' has the same syntax and interpretation as 'grid-auto-columns' .
676
590
677
591
678
592
<h4 id=masonry-intrinsic-repeat>
@@ -754,7 +668,6 @@ Intrinsic Tracks and repeat()</h4>
754
668
would each result in,
755
669
and use those sizes.
756
670
</details>
757
- </section>
758
671
759
672
<h3 id="subgrids">
760
673
Subgrids</h3>
@@ -764,19 +677,12 @@ Subgrids</h3>
764
677
If the parent's corresponding axis is a [=grid axis=] ,
765
678
the subgridded axis is taken from the parent container
766
679
[[css-grid-2#subgrids|as specified for grid containers]] ;
767
- if the parent's corresponding axis is a [=stacking axis=] ...
768
-
769
- <section class="option grid">
770
- <span class="option grid"> Grid-integrated Syntax:</span>
771
- ...the subgridded axis acts like ''masonry'' .
680
+ if the parent's corresponding axis is a [=stacking axis=] ,
681
+ the subgridded axis acts like ''masonry'' .
772
682
773
683
Note: If this results in ''grid-template/masonry'' in both axes,
774
684
it is resolved as normal for [=masonry containers=] with double-axis ''grid-template/masonry'' templates,
775
685
i.e. it acts like ''grid-template-columns: none; grid-template-rows: masonry'' .
776
- </section>
777
-
778
- <p class="option masonry"><span class="option masonry"> Grid-independent Syntax:</span>
779
- ...the subgridded axis acts like ''grid-template/none'' .
780
686
781
687
In [=masonry layout=] , auto-placed [=subgrids=]
782
688
don't inherit any line names from their parent grid,
@@ -1036,29 +942,14 @@ Masonry Placement</h2>
1036
942
ISSUE: Need a better example!!!
1037
943
</div>
1038
944
1039
- <section class="option grid">
1040
945
<h3 id="masonry-placement-grid-option">
1041
- <span class="option grid">Grid-integrated Option:</span> Specifying Masonry Item Placement: the 'grid-column-*' and 'grid-row-*' properties</h3>
946
+ Specifying Masonry Item Placement: the 'grid-column-*' and 'grid-row-*' properties</h3>
1042
947
1043
948
The 'grid-column-*' and 'grid-row-*' properties
1044
949
(and their shorthands)
1045
950
apply in the [=grid axis=] of the items
1046
951
and establish placement just as in regular [=grid layout=] .
1047
- </section>
1048
952
1049
- <section class="option masonry">
1050
- <h3 id="masonry-placement-masonry-option">
1051
- <span class="option masonry">Grid-independent Option:</span> Specifying Masonry Item Placement: the 'masonry-track-*' properties</h3>
1052
-
1053
- Item placement in the [=grid axis=] of a [=masonry container=]
1054
- is established with the
1055
- <dfn property>masonry-track-start</dfn> and
1056
- <dfn property>masonry-track-end</dfn> properties
1057
- (and their <dfn property>masonry-track</dfn> shorthand),
1058
- whose syntax and interpretation are analogous to the
1059
- 'grid-column-start' and 'grid-column-end' properties
1060
- (and their 'grid-column' shorthand).
1061
- </section>
1062
953
1063
954
<h3 id="masonry-slack">
1064
955
Placement Precision: the 'masonry-slack' property</h3>
0 commit comments