summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/abspos/support/positioned-grid-descendants.css
blob: 9fa29a25ae35b9b8a29d0c14032e457d513dea3a (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
.grid {
  display: grid;
  grid: 150px 100px / 200px 300px;
  margin: 1px 2px 3px 4px;
  padding: 20px 15px 10px 5px;
  border-width: 9px 3px 12px 6px;
  border-style: solid;
  width: 550px;
  height: 400px;
  position: relative;
  font: 25px/1 Ahem;
}
.abspos {
  position: absolute;
  display: inline;
}
.orthogonal {
  writing-mode: vertical-lr;
}
.grid > :nth-child(1) > .abspos {
  color: cyan;
}
.grid > :nth-child(2) > .abspos {
  color: yellow;
}