Implement percentage heights for block flows

Fixes #2029
This commit is contained in:
Matt Brubeck 2014-09-14 16:46:44 -07:00
parent 0e2cdc5cca
commit c7e30f87c4
4 changed files with 63 additions and 4 deletions

View file

@ -125,3 +125,4 @@ flaky_gpu,flaky_linux == acid2_noscroll.html acid2_ref_broken.html
== float_table_a.html float_table_ref.html
== table_containing_block_a.html table_containing_block_ref.html
== link_style_order.html link_style_order_ref.html
== percent_height.html percent_height_ref.html

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.outer {
background: red;
width: 100px;
height: 100px;
}
.inner {
background: green;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="outer">
<div class="inner"></div>
</div>
</body>
</html>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.outer {
background: green;
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<div class="outer">
</div>
</body>
</html>