summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/masonry/tentative/intrinsic-sizing/support/masonry-intrinsic-sizing-visual.css
blob: 150f0f2679a35a97fc0fb7de792c4473850b73d9 (plain)
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
48
/* Basic Testing Setup */
html,body {
  color: black; background: white; font: 15px/1 Ahem, monospace;
  padding: 1em 0; margin: 0;
  max-width: 800px; height: calc(600px - 2em);
  border-bottom: 1px solid orange; /* Do Not Cross */
}


/* Visualization */
grid {
  margin: 0.5em;
}
item {
  background-color: gray;
  color: blue;
}

/* Debugging Aid */
section {
  border-top: 1px solid gray;
  counter-reset: grid;
}

grid {
  margin-inline-start: 1em;
  counter-increment: grid;
}
grid::before {
  position: absolute;
  margin: 0 -1.1em;
  font: smaller sans-serif;
  content: counter(grid);
  color: navy;
}

grid:hover {
  outline: navy solid;
}
grid:hover item[style] {
  color: navy;
}
grid:hover::after {
  content: attr(title);
  position: absolute;
  inset: 0.1em auto auto 0.5rem;
  font: bold smaller sans-serif;
}