2 <script src=
"../../resources/testharness.js"></script>
3 <script src=
"../../resources/testharnessreport.js"></script>
5 #parent1 { vertical-align:
50px; }
6 #parent2 { vertical-align:
50%; }
7 #child1, #child2 { vertical-align: inherit; }
10 <div id=
"child1"></div>
13 <div id=
"child2"></div>
17 assert_equals(getComputedStyle(child1
).verticalAlign
, "50px");
18 assert_equals(getComputedStyle(child2
).verticalAlign
, "50%");
19 }, "Tests vertical-align inherits correctly");