text-indent-intrinsic-min.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>CSS 2.1 Test Suite: Test for intrinsic widths and 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; width: 1px; }
  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. <!-- test against inline margin -->
  24. <div style="text-indent: 3em;">X</div>
  25. <!-- test against block padding -->
  26. <div style="text-indent: 3em;">X</div>
  27. <!-- test against block width -->
  28. <div style="text-indent: 3em;"><span></span></div>
  29. <div style="text-indent: 3em"><span style="width: 1em"></span></div>
  30. <div style="text-indent: 3em"><span style="width: 1em"></span>&#x200b;<span style="width: 2em"></span></div>
  31. <div style="text-indent: 3em"><span style="width: 1em"></span>&#x200b;<span style="width: 6em"></span></div>
  32. <div style="text-indent: 3em"><span style="width: 1em"></span><br><span style="width: 2em"></span></div>
  33. <div style="text-indent: 3em"><span style="width: 1em"></span><br><span style="width: 6em"></span></div>
  34. <pre style="text-indent: 3em"><span style="width: 1em"></span>
  35. <span style="width: 2em"></span></pre>
  36. <pre style="text-indent: 3em"><span style="width: 1em"></span>
  37. <span style="width: 6em"></span></pre>
  38. </body>
  39. </html>