3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
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">
12 color:black
; background-color:white
; font-size:16px; padding:0; margin:0;
14 separator
{ clear:both
; display:block
; height:6px; }
21 border-block-start: 2px solid blue
;
22 grid-template: 3px 1px 5px 1px 7px / 11px 7px 5px;
23 padding: 1px 1px 3px 2px;
33 justify-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; }
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"));