summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/masonry/tentative/intrinsic-sizing/masonry-intrinsic-sizing-006.html
blob: ad5480092162584589bbea3608f70688d7e6eb3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE HTML>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
  <meta charset="utf-8">
  <title>CSS Grid Test: Masonry layout row auto-fill sizing</title>
  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
  <link rel="help" href="https://drafts.csswg.org/css-grid-3/#track-sizing">
  <link rel="match" href="masonry-intrinsic-sizing-006-ref.html">
  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
  <style>

@import "support/masonry-intrinsic-sizing-visual.css";

grid {
  display: inline-grid;
  gap: 1px 2px;
  grid-template-columns: masonry;
  grid-template-rows: repeat(4,auto);
  border: 1px solid;
  padding: 0 1px 0 2px;
  vertical-align: top;
}
</style>

<body>

<grid title="max-height 5em"
      style="max-height:5em; grid-template-rows: repeat(auto-fill,1em);">
  <item>1 1</item>
  <item>2</item>
  <item>3</item>
  <item>4</item>
  <item>5 5</item>
</grid>

<grid title="min-height 4em"
      style="min-height:4em; grid-template-rows: repeat(auto-fill,1em);">
  <item>1 1</item>
  <item>2</item>
  <item>3</item>
  <item>4</item>
  <item>5 5</item>
</grid>

<grid title="height 5em"
      style="height:5em; grid-template-rows: repeat(auto-fill,1em);">
  <item>1 1</item>
  <item>2</item>
  <item>3</item>
  <item>4</item>
  <item>5 5</item>
</grid>