Skip to content

Commit f23c18f

Browse files
committed
[css-grid-3][masonry] Placeholder for masonry 'display' value #12022
1 parent d34d0e8 commit f23c18f

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

css-grid-3/Overview.bs

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Reordering and Accessibility</h3>
300300
</section>
301301
<style>
302302
.masonry {
303-
//FIXME display:masonry or something
303+
//FIXME display: something;
304304
grid-template-columns: repeat(5, auto);
305305
}
306306
.item { height: 50px; }
@@ -351,14 +351,27 @@ Reordering and Accessibility</h3>
351351
<h3 id="masonry-switch">
352352
Establishing Masonry Layout</h3>
353353

354+
<div class="informative">
355+
<pre class="propdef partial">
356+
Name: display
357+
New values: something
358+
</pre>
359+
</div>
360+
361+
<dl dfn-for="display" dfn-type=value>
362+
<dt><dfn>something</dfn>
363+
<dd>
364+
This value causes an element to generate a <a>masonry container</a> box.
365+
</dl>
366+
367+
A [=masonry container=] that is not [=subgridded=] in its [=grid axis=] establishes
368+
an [=independent formatting context|independent=] <dfn export>grid formatting context</dfn>
369+
for its contents.
354370

355371
<div class=issue>
356-
ISSUE(11593): We are still debating what syntactic switch establishes a [=masonry layout=].
357-
Proposals so far include:
358-
* ''display: masonry'' (or a synonym, such as ''display: stack'')
359-
* ''item-pack: collapse'' (see 'item-pack')
360-
* a <css>collapse</css> value for 'grid-template-rows'/'grid-template-columns',
361-
indicating that axis as the [=stacking axis=] of a [=grid container=]
372+
ISSUE(12022): We are looking for a reasonable 'display' value (that includes the word ''display/grid'' somehow) to represent [=masonry layout=].
373+
They could be of the form <css>something-grid</css>, <css>grid-something</css>, <css>grid something</css>, or <css>something grid</css>.
374+
Suggestions are welcome in the issue.
362375
</div>
363376

364377
<h2 id="masonry-track-templates">
@@ -497,7 +510,7 @@ Subgrids</h3>
497510
```css
498511
<style>
499512
.grid {
500-
//FIXME: display: inline-grid; or something
513+
//FIXME: display: inline something;
501514
grid-template-rows: auto auto 100px;
502515
align-content: center;
503516
height: 300px;
@@ -890,7 +903,7 @@ Placement and Writing Modes</h4>
890903
```css
891904
<style>
892905
.grid {
893-
//FIXME display: inline-grid; or something
906+
//FIXME display: inline something;
894907
direction: rtl;
895908
grid-template-columns: repeat(4, 2ch);
896909
border: 1px solid;
@@ -925,7 +938,7 @@ Placement and Writing Modes</h4>
925938
```css
926939
<style>
927940
.grid {
928-
//FIXME display: inline-grid; or something
941+
//FIXME display: inline something;
929942
direction: rtl;
930943
width: 10ch;
931944
column-gap: 1ch;
@@ -970,7 +983,7 @@ Sizing Grid Containers</h2>
970983
```css
971984
<style>
972985
.grid {
973-
//FIXME display: inline-grid; or something
986+
//FIXME display: inline something;
974987
grid-template-columns: 50px 100px auto;
975988
grid-gap: 10px;
976989
border: 1px solid;
@@ -1141,7 +1154,7 @@ Graceful Degradation</h2>
11411154

11421155
```css
11431156
display: grid;
1144-
//FIXME item-flow: collapse; /* ignored in UAs that don't support masonry layout */
1157+
display: something; /* ignored in UAs that don't support masonry layout */
11451158
grid-template-columns: 150px 100px 50px;
11461159
```
11471160

@@ -1495,6 +1508,8 @@ Recent Changes</h3>
14951508
and gave it an initial value of ''item-tolerance/normal''.
14961509
(<a href="https://github.com/w3c/csswg-drafts/issues/10884">Issue 10884</a>,
14971510
<a href="https://github.com/w3c/csswg-drafts/issues/12111">Issue 12111</a>)
1511+
* Added a placeholder for a [=masonry layout=] 'display' value.
1512+
(<a href="https://github.com/w3c/csswg-drafts/issues/12022">Issue 12022</a>)
14981513
* Tweak baseline alignment to export the highest/lowest among the first/last items of every track.
14991514
(<a href="https://github.com/w3c/csswg-drafts/issues/9530">Issue 9530</a>)
15001515

0 commit comments

Comments
 (0)