Bug 1298550 - Re-enable the now-passing part of grid-percent-grid-gap-001.html. r...
[gecko.git] / layout / reftests / css-grid / grid-row-gap-001-ref.html
blob34b8b1ddb49749863da55ff23b0eed34fbc31d65
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>Reference: 'grid-row-gap'</title>
9 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1176792">
10 <style type="text/css">
11 html,body {
12 color:black; background-color:white; font-size:16px; padding:0; margin:0;
14 separator { clear:both; display:block; height:6px; }
16 .grid {
17 display: grid;
18 float: left;
19 position: relative;
20 border: 1px solid;
21 border-block-start: 2px solid blue;
22 grid-template: 3px 1px 5px 1px 7px / 11px 7px 5px;
23 padding: 1px 1px 3px 2px;
24 margin-right: 4px;
25 width: 40px;
26 height: 40px;
29 item1,item2,item3 {
30 display: block;
31 position: relative;
32 background: grey;
33 justify-self: stretch;
34 align-self: stretch;
37 item1 { grid-area: 1 / 1; }
38 item2 { grid-area: 3 / 2; }
39 item3 { grid-area: 5 / 3; }
41 .hl { writing-mode: horizontal-tb; direction:ltr; }
42 .hr { writing-mode: horizontal-tb; direction:rtl; }
43 .vl { writing-mode: vertical-lr; }
44 .vr { writing-mode: vertical-rl; }
45 .vlr { writing-mode: vertical-lr; direction:rtl; }
46 .vrl { writing-mode: vertical-rl; direction:ltr; }
48 .aend *, .aflexend * { inset-block-start:23px; }
49 .acenter * { inset-block-start:11.5px; }
52 .aspace-between item2 { inset-block-start:11.5px; }
53 .aspace-between item3 { inset-block-start:23px; }
55 .aspace-around item1 { inset-block-start:4.1666px; }
56 .aspace-around item2 { inset-block-start:11.5px; }
57 .aspace-around item3 { inset-block-start:18.8333px; }
59 .aspace-evenly item1 { inset-block-start:6.25px; }
60 .aspace-evenly item2 { inset-block-start:11.5px; }
61 .aspace-evenly item3 { inset-block-start:16.75px; }
63 .astretch2 { grid-template-rows: 1fr 1px 5px 1px 7px; }
64 .astretch3 { grid-template-rows: 14.5px 1px 16.3333px 1px 7px; }
65 .astretch4 { grid-template-rows: 10.66666px 1px 12.66666px 1px 14.66666px; }
67 </style>
68 </head>
69 <body>
71 <script>
72 var gridwm = [ "hl", "hr", "vl", "vr", "vlr", "vrl" ];
73 var test = [ "start", "end", "flexstart", "flexend", "center", "left", "right",
74 "space-between", "space-around", "space-evenly",
75 "stretch1", "stretch2", "stretch3", "stretch4" ];
76 for (var k = 0; k < test.length; ++k) {
77 for (var i = 0; i < gridwm.length; ++i) {
78 var div = document.createElement("div");
79 div.className = "grid a" + test[k] + " " + gridwm[i];
80 div.appendChild(document.createElement("item1"));
81 div.appendChild(document.createElement("item2"));
82 div.appendChild(document.createElement("item3"));
83 document.body.appendChild(div)
85 document.body.appendChild(document.createElement("separator"));
87 </script>
90 </body>
91 </html>