blob: 5ab012f22a9a51c0ac156bf6d6472d5880110641 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<div id="wrapper">
<div style="width: 400px; border: 3px solid black;">
<div id="target1" style="
margin-left: 10px; width: 500px; border: 3px solid gray;
margin-right: auto;">
</div>
</div>
<div style="width: 400px; border: 3px solid black; direction: rtl;">
<div id="target2" style="
margin-right: 10px; width: 500px; border: 3px solid gray;
margin-left: auto; ">
</div>
</div>
</div>
<script>
shouldBe("getComputedStyle(target1).marginRight", "'-116px'");
shouldBe("getComputedStyle(target2).marginLeft", "'-116px'");
</script>
<div id="console"></div>
</body>
</html>