summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/dynamic-change-inline-size-003-ref.html
blob: c8d67a8d27457acc6edaf3a60d31fc005791d6ed (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: Dynamic change to the inline-size of body</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="stylesheet" href="/fonts/ahem.css">

<style>
body {
  inline-size: 200px;
}

.abs {
  position: absolute;
  background: green;
  inline-size: 100px;
  padding-top: 100px;
}
.layout {
  font: 50px/1 Ahem;
  color: red;
  background-color: red;
  width: 100px;
  padding-top: 25%; /* This resolves against body's inline-size. */
}
</style>

<body>
  <div class="abs"></div>
  <div class="layout">XX</div>
</body>