gecko/layout/reftests/css-calc/text-indent-intrinsic-1.html

26 lines
1.2 KiB
HTML
Raw Normal View History

<!DOCTYPE HTML>
<title>intrinsic width of text-indent: calc() on blocks</title>
<style>
body { font-size: 10px }
div { float: left; clear: left;
margin: 0 0 1px 0; background: blue; color: white; height: 5px }
span { display: inline-block; width: 10px }
</style>
<div style="text-indent: -moz-calc(50% - 3px)"><span></span></div>
<div style="text-indent: -moz-calc(5em - 3px)"><span></span></div>
<div style="text-indent: -moz-calc(max(5em, 0) - 3px)"><span></span></div>
<div style="text-indent: -moz-calc(max(5em, 0%) - 3px)"><span></span></div>
<div style="text-indent: -moz-calc(5em - min(3px, 0%))"><span></span></div>
<div style="text-indent: -moz-calc(5em - min(3px, 0))"><span></span></div>
<div style="text-indent: -moz-calc(5em - 0%)"><span></span></div>
<div style="text-indent: -moz-calc(50%)"><span></span></div>
<div style="text-indent: -moz-calc(50px)"><span></span></div>
<div style="text-indent: -moz-calc(25% + 25%)"><span></span></div>
<div style="text-indent: -moz-calc(min(25%, 50%))"><span></span></div>
<div style="text-indent: -moz-calc(max(25%, 50%))"><span></span></div>
<div style="text-indent: -moz-calc(min(25%, 100px))"><span></span></div>
<div style="text-indent: -moz-calc(max(25%, 100px))"><span></span></div>