blob: 80b52fbf1fe13a7c9ec5288f301194e40a381430 (
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
|
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#outer {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-box-pack: center;
width: 100px;
height: 100px;
}
#inner {
width: 100px;
height: 200px;
}
</style>
<div id="outer">
<div id="inner"></div>
</div>
<script>
test(function() {
var child = document.getElementById("inner");
assert_greater_than(child.offsetTop, 0);
}, "Child should be positioned at y-offset greater than 0 if children exceed bounds of parent");
</script>
|