blob: 2997a776ca1ff0e9025a1f2e42e108e926640f50 [file] [log] [blame]
<!DOCTYPE html>
<style>
#wrapper {
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
}
#child {
position: relative;
width: 100px;
height: 100px;
top: 50%;
background-color: green;
}
#ref {
position: absolute;
width: 100px;
height: 100px;
top: 150px;
background-color: red;
}
</style>
<p>crbug.com/61049: There should be no red box below.</p>
<div id="log"></div>
<div id="ref"></div>
<div style="position: absolute; height: 200px; width: 200px; top: 50px;">
<div id="wrapper">
<div id="child" data-positioned-offset-y=100></div>
</div>
</div>
<script src="../../../resources/check-layout.js"></script>
<script>
checkLayout("#child", log);
</script>