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

14 lines
501 B
HTML

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