gecko-dev/dom/html/reftests/body-topmargin-dynamic.html

13 строки
396 B
HTML

<!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>