summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/subgrid/subgrid-baseline-003-ref.html
blob: d6da254d8879d2f67ed262b1fe043f29af06b1eb (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
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Test: baseline-aligned subgrid item</title>
  <link rel="author" title="Matt Woodrow" href="mailto:mattwoodrow@apple.com">
  <link rel="help" href="https://drafts.csswg.org/css-grid-2">
  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
  <style>
html,body {
  color:black; background-color:white; font:16px/1 Ahem; padding:0; margin:0;
}

.grid {
  display: grid;
  grid-template-columns: auto auto;
  max-width: 100px;
  place-items: baseline start;
}

.first {
  font-size: 3em;
}

.second {
  font-size: 2em;
}
  </style>
</head>
<body>
<div class="grid">
  <div class="first">A</div>
  <div class="second">A</div>
</div>

</body>
</html>