blob: 1b798ff8c54cd36b821f62d0aec32d275a998da5 (
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
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>Test if percentage height of table's child element with box-sizing: border-box is calculated correctly</title>
<link rel="help" href="https://drafts.csswg.org/css-sizing/#box-sizing">
<link rel="match" href="table-child-percentage-height-with-border-box-ref.html">
<style>
html {
height: 100%;
width: 100%;
}
body {
box-sizing: border-box;
display: table;
margin: 0 auto;
width: 100%;
height: 100%;
}
.content {
box-sizing: border-box;
display: table-row;
width: 100%;
height: 100%;
background-color: red;
}
.wrapper {
box-sizing: border-box;
width: 100%;
height: 100%;
background-color: green;
padding-top: 100px;
}
</style>
<body>
<div class="content">
<div class="wrapper">
wrapped content (height: 100%)
</div>
</div>
</body>
|