-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathgrid-gap-decorations-025.html
More file actions
47 lines (44 loc) · 1.15 KB
/
grid-gap-decorations-025.html
File metadata and controls
47 lines (44 loc) · 1.15 KB
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
<!DOCTYPE html>
<title>
CSS Gap Decorations: Grid column gaps are painted with default :visited styles when multiple colors are used.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="grid-gap-decorations-025-ref.html">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
body {
margin: 0px;
}
.grid-container {
display: grid;
grid-gap: 10px;
grid-template-columns: 100px 100px 100px;
height: 320px;
column-rule-color: blue;
column-rule-style: solid;
column-rule-width: 5px;
row-rule-color: red;
row-rule-style: solid;
row-rule-width: 5px;
}
.item {
background: gray;
opacity: 0.5;
}
.grid-link:visited .grid-container {
column-rule-color: red, lime, blue;
}
</style>
<a href="" class="grid-link">
<div class="grid-container">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</a>