text-indent-negative-intrinsic-pref.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>CSS 2.1 Test Suite: Test for intrinsic widths and negative text-indent</title>
  5. <link rel="author" title="L. David Baron" href="https://dbaron.org/" />
  6. <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
  7. <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#indentation-prop" />
  8. <meta name="flags" content="" />
  9. <style type="text/css">
  10. body { font-size: 12px; }
  11. body > div, body > pre {
  12. float: left; clear: left; margin: 1px; height: 2em;
  13. border: medium solid;
  14. }
  15. span {
  16. display: inline-block;
  17. height: 1em;
  18. width: 1em;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <div style="text-indent: -3em;"><span style="width: 1em"></span></div>
  24. <div style="text-indent: -3em;"><span style="width: 5em"></span></div>
  25. <div style="text-indent: -3em;"><span style="width: 1em"></span>&#x200b;<span style="width: 1em"></span></div>
  26. <div style="text-indent: -3em;"><span style="width: 1em"></span>&#x200b;<span style="width: 3em"></span></div>
  27. <div style="text-indent: -3em;"><span style="width: 1em"></span>&#x200b;<span style="width: 3em"></span>&#x200b;<span style="width: 3em"></span></div>
  28. <div style="text-indent: -3em;"><span style="width: 4em"></span>&#x200b;<span style="width: 3em"></span></div>
  29. <div style="text-indent: -3em;"><span style="width: 1em"></span><br><span style="width: 1em"></span></div>
  30. <div style="text-indent: -3em;"><span style="width: 5em"></span><br><span style="width: 1em"></span></div>
  31. <pre style="text-indent: -3em"><span style="width: 1em"></span>
  32. <span style="width: 5em"></span></pre>
  33. <pre style="text-indent: -3em"><span style="width: 5em"></span>
  34. <span style="width: 1em"></span></pre>
  35. </body>
  36. </html>