summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/vertical-align-inherit.html
blob: cc242e372b24ec5469a6fdf2e843f9acf4a226ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style>
#parent1 { vertical-align: 50px; }
#parent2 { vertical-align: 50%; }
#child1, #child2 { vertical-align: inherit; }
</style>
<div id="parent1">
  <div id="child1"></div>
</div>
<div id="parent2">
  <div id="child2"></div>
</div>
<script>
test(function() {
    assert_equals(getComputedStyle(child1).verticalAlign, "50px");
    assert_equals(getComputedStyle(child2).verticalAlign, "50%");
}, "Tests vertical-align inherits correctly");
</script>