summaryrefslogtreecommitdiffstats
path: root/dom/html/reftests/body-topmargin-dynamic.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/reftests/body-topmargin-dynamic.html')
-rw-r--r--dom/html/reftests/body-topmargin-dynamic.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/dom/html/reftests/body-topmargin-dynamic.html b/dom/html/reftests/body-topmargin-dynamic.html
new file mode 100644
index 0000000000..e6c8c505e7
--- /dev/null
+++ b/dom/html/reftests/body-topmargin-dynamic.html
@@ -0,0 +1,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>