gecko/layout/reftests/css-calc/offsets-relative-right-1.html

14 lines
510 B
HTML
Raw Normal View History

<!DOCTYPE HTML>
<title>Test for right:calc() on relatively positioned elements</title>
<style>
body { margin: 0 100px; width: 100px }
div[style] { background: blue; position: relative; height: 3px; }
</style>
<div style="right: -moz-calc(-50px)"></div>
<div style="right: -moz-calc(50%)"></div>
<div style="right: -moz-calc(-25px - 50%)"></div>
<div style="right: -moz-calc(150% / 2 - 30px)"></div>
<div style="right: -moz-calc(-40px - 10% + 20% / 2)"></div>
<div style="right: -moz-calc(-10% + 40px)"></div>