calc-text-indent-intrinsic-1

intrinsic width of text-indent: calc() on blocks

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3   <title>CSS Test: intrinsic width of text-indent: calc() on blocks</title>
 4   <link href="https://dbaron.org/" rel="author" title="L. David Baron">
 5   <link href="http://www.w3.org/TR/css3-values/#calc-notation" rel="help">
 6   <link href="reference/calc-text-indent-intrinsic-1-ref.htm" rel="match">
 7   <meta content="" name="flags">
 8 <style type="text/css">
 9 
10 body { font-size: 10px }
11 div { float: left; clear: left;
12        margin: 0 0 1px 0; background: blue; color: white; height: 5px }
13 span { display: inline-block; width: 10px }
14 
15 </style>
16 </head>
17 <body>
18 
19 <div style="text-indent: calc(50% - 3px)"><span></span></div>
20 <div style="text-indent: calc(5em - 3px)"><span></span></div>
21 <div style="text-indent: calc(5em - 0%)"><span></span></div>
22 <div style="text-indent: calc(50%)"><span></span></div>
23 <div style="text-indent: calc(50px)"><span></span></div>
24 <div style="text-indent: calc(25% + 25%)"><span></span></div>
25 
26 
27 </body></html>