summaryrefslogtreecommitdiffstats
path: root/dom/html/reftests/body-topmargin-dynamic.html
blob: e6c8c505e7ea4ad591e49f1c33433254f90a168b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html>
<body>
this text should have a margin of 100px on the top and left
<p style="direction: rtl">this text should have a margin of 100px on the right</p>
<script type="text/javascript">
    document.body.setAttribute("topmargin", "100px");
    document.body.setAttribute("leftmargin", "100px");
    document.body.setAttribute("rightmargin", "100px");
</script>
</body>
</html>