Skip to content

Commit 8ad6412

Browse files
committed
[css-grid-3] Per WG resolution, use the grid template and placement properties. #11243
1 parent f999f4c commit 8ad6412

File tree

1 file changed

+5
-114
lines changed

1 file changed

+5
-114
lines changed

css-grid-3/Overview.bs

+5-114
Original file line numberDiff line numberDiff line change
@@ -186,25 +186,6 @@ One-dimensional Grid Layout</h4>
186186
</figure>
187187
</div>
188188

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>
208189

209190
<h3 id="values">
210191
Value Definitions</h3>
@@ -595,84 +576,17 @@ Masonry Track Specification</h2>
595576
thus, the tracks themselves must already have a definite size
596577
so that the items know their [=available space=] during layout.
597578

598-
<section class="option grid">
599579
<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>
601581

602582
The 'grid-template-*' and 'grid-auto-rows'/'grid-auto-columns' properties
603583
(and their shorthands)
604584
apply in the [=grid axis=] of the [=masonry container=]
605585
and establish tracks just as on regular [=grid containers=].
586+
(They are ignored in the [=stacking axis=].)
606587

607588
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.)
636589

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>&lt;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'.
676590

677591

678592
<h4 id=masonry-intrinsic-repeat>
@@ -754,7 +668,6 @@ Intrinsic Tracks and repeat()</h4>
754668
would each result in,
755669
and use those sizes.
756670
</details>
757-
</section>
758671

759672
<h3 id="subgrids">
760673
Subgrids</h3>
@@ -764,19 +677,12 @@ Subgrids</h3>
764677
If the parent's corresponding axis is a [=grid axis=],
765678
the subgridded axis is taken from the parent container
766679
[[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''.
772682

773683
Note: If this results in ''grid-template/masonry'' in both axes,
774684
it is resolved as normal for [=masonry containers=] with double-axis ''grid-template/masonry'' templates,
775685
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''.
780686

781687
In [=masonry layout=], auto-placed [=subgrids=]
782688
don't inherit any line names from their parent grid,
@@ -1036,29 +942,14 @@ Masonry Placement</h2>
1036942
ISSUE: Need a better example!!!
1037943
</div>
1038944

1039-
<section class="option grid">
1040945
<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>
1042947

1043948
The 'grid-column-*' and 'grid-row-*' properties
1044949
(and their shorthands)
1045950
apply in the [=grid axis=] of the items
1046951
and establish placement just as in regular [=grid layout=].
1047-
</section>
1048952

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>
1062953

1063954
<h3 id="masonry-slack">
1064955
Placement Precision: the 'masonry-slack' property</h3>

0 commit comments

Comments
 (0)