Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>CSS Test: intrinsic width of text-indent: calc() on blocks</title> |
michael@0 | 5 | <link rel="author" title="L. David Baron" href="http://dbaron.org/"> |
michael@0 | 6 | <link rel="help" href="http://www.w3.org/TR/css3-values/#calc-notation"> |
michael@0 | 7 | <meta name="flags" content=""> |
michael@0 | 8 | <style type="text/css"> |
michael@0 | 9 | |
michael@0 | 10 | body { font-size: 10px } |
michael@0 | 11 | div { float: left; clear: left; |
michael@0 | 12 | margin: 0 0 1px 0; background: blue; color: white; height: 5px } |
michael@0 | 13 | span { display: inline-block; width: 10px } |
michael@0 | 14 | |
michael@0 | 15 | </style> |
michael@0 | 16 | </head> |
michael@0 | 17 | <body> |
michael@0 | 18 | |
michael@0 | 19 | <div style="text-indent: calc(50% - 3px)"><span></span></div> |
michael@0 | 20 | <div style="text-indent: calc(5em - 3px)"><span></span></div> |
michael@0 | 21 | <div style="text-indent: calc(5em - 0%)"><span></span></div> |
michael@0 | 22 | <div style="text-indent: calc(50%)"><span></span></div> |
michael@0 | 23 | <div style="text-indent: calc(50px)"><span></span></div> |
michael@0 | 24 | <div style="text-indent: calc(25% + 25%)"><span></span></div> |
michael@0 | 25 | </body> |
michael@0 | 26 | </html> |