no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / layout / reftests / css-grid / grid-align-content-001.html
blob725b654083249cd7539deff2a0a14721515376d9
1 <!DOCTYPE HTML>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <html><head>
7 <meta charset="utf-8">
8 <title>CSS Grid Test: align-content</title>
9 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1151214">
10 <link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-align-content">
11 <link rel="match" href="grid-align-content-001-ref.html">
12 <style type="text/css">
13 html,body {
14 color:black; background-color:white; font-size:16px; padding:0; margin:0;
16 separator { clear:both; display:block; height:6px; }
18 .grid {
19 display: grid;
20 float: left;
21 position: relative;
22 border: 1px solid;
23 border-block-start: 2px solid blue;
24 grid-template: 3px 5px 7px / 11px 7px 5px;
25 padding: 1px 1px 3px 2px;
26 margin-right: 4px;
27 width: 40px;
28 height: 40px;
31 item1,item2,item3 {
32 display: block;
33 background: grey;
34 justify-self: stretch;
35 align-self: stretch;
38 item1 { grid-area: 1 / 1; }
39 item2 { grid-area: 2 / 2; }
40 item3 { grid-area: 3 / 3; }
42 .hl { writing-mode: horizontal-tb; direction:ltr; }
43 .hr { writing-mode: horizontal-tb; direction:rtl; }
44 .vl { writing-mode: vertical-lr; }
45 .vr { writing-mode: vertical-rl; }
46 .vlr { writing-mode: vertical-lr; direction:rtl; }
47 .vrl { writing-mode: vertical-rl; direction:ltr; }
49 .astart { align-content:start; }
50 .aend { align-content:end; }
51 .aflexstart { align-content:flex-start; }
52 .aflexend { align-content:flex-end; }
53 .acenter { align-content:center; }
54 .aleft { align-content:left; }
55 .aright { align-content:right; }
57 .aspace-between{ align-content:space-between; }
58 .aspace-around { align-content:space-around; }
59 .aspace-evenly { align-content:space-evenly; }
61 .astretch1, .astretch2, .astretch3, .astretch4 { align-content:stretch; }
62 .astretch2 { grid-template-rows: minmax(3px,auto) 5px 7px; }
63 .astretch3 { grid-template-rows: minmax(3px,auto) minmax(5px,auto) 7px; }
64 .astretch4 { grid-template-rows: minmax(3px,auto) minmax(5px,auto) minmax(7px,auto); }
66 </style>
67 </head>
68 <body>
70 <script>
71 var gridwm = [ "hl", "hr", "vl", "vr", "vlr", "vrl" ];
72 var test = [ "start", "end", "flexstart", "flexend", "center", "left", "right",
73 "space-between", "space-around", "space-evenly",
74 "stretch1", "stretch2", "stretch3", "stretch4" ];
75 for (var k = 0; k < test.length; ++k) {
76 for (var i = 0; i < gridwm.length; ++i) {
77 var div = document.createElement("div");
78 div.className = "grid a" + test[k] + " " + gridwm[i];
79 div.appendChild(document.createElement("item1"));
80 div.appendChild(document.createElement("item2"));
81 div.appendChild(document.createElement("item3"));
82 document.body.appendChild(div)
84 document.body.appendChild(document.createElement("separator"));
86 </script>
89 </body>
90 </html>