3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
8 <title>CSS Grid Test: 'grid-column-gap' percentage
</title>
9 <link rel=
"author" title=
"Mats Palmgren" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1279182">
10 <link rel=
"help" href=
"http://dev.w3.org/csswg/css-grid/#gutters">
11 <link rel=
"match" href=
"grid-percent-grid-gap-ref.html">
14 color:black; background-color:white; font-size:
1px; padding:
0; margin:
0;
19 grid-template-columns:
30px
30px;
25 grid-auto-columns:
160px;
26 grid-auto-rows:
120px;
30 .float { float:left; border:
2px solid blue; }
37 grid-gap: calc(
12px +
10%) calc(
16px +
10%);
40 span:nth-of-type(
1) { background: magenta; }
41 span:nth-of-type(
2) { background: cyan; }
42 span:nth-of-type(
3) { background: yellow; }
43 span:nth-of-type(
4) { background: lime; }
56 <div class=
"inline-grid">
57 <div class=
"grid percentgap">
65 <div class=
"inline-grid" style=
"grid: auto / auto">
66 <div class=
"grid percentgap" style=
"place-self:start/start; width:160px; height:120px">
75 <div class=
"grid percentgap cfill" style=
"max-width:800%">
83 <div class=
"inline-grid">
84 <div class=
"grid percentgap" style=
"place-self:start">
94 <div style=
"width:320px;height:200px">
95 <div class=
"grid percentgap" style=
"height:120px">
103 <div class=
"inline-grid">
104 <div class=
"grid calcgap">
112 <div class=
"inline-grid" style=
"grid: auto / auto">
113 <div class=
"grid calcgap" style=
"align-self:start; justify-self:start; width:160px; height:120px">
121 <div class=
"inline-grid">
122 <div class=
"grid" style=
"grid: min-content calc(12px + 10%) min-content / min-content calc(16px + 10%) min-content">
123 <span><x></x></span><z></z><span><x></x></span>
124 <z></z><z></z><z></z>
125 <span><x></x></span><z></z><span><x></x></span>
131 <div style=
"width:320px;height:200px">
132 <div class=
"grid calcgap" style=
"height:120px; grid-column-gap:calc(32px + 10%)">
140 <div style=
"width:320px;height:200px">
141 <div class=
"grid calcgap" style=
"height:120px; grid-gap:calc(32px - 30%)">
149 <div class=
"float" style=
"margin-top:-50px">
150 <div class=
"grid percentgap cfill" style=
"min-width:300%">