marker-string-ref.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE HTML>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/licenses/publicdomain/
  5. Test: text-overflow:<string>
  6. -->
  7. <html><head>
  8. <title>text-overflow: text-overflow:&lt;string&gt;</title>
  9. <style type="text/css">
  10. @font-face {
  11. font-family: DejaVuSansMono;
  12. src: url(../fonts/DejaVuSansMono.woff);
  13. }
  14. html,body {
  15. color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono;
  16. }
  17. .test {
  18. overflow:hidden;
  19. width:20ch;
  20. height:3em;
  21. white-space:nowrap;
  22. margin-left:2em;
  23. position:relative;
  24. }
  25. span {
  26. margin: 0 -0.5ch;
  27. }
  28. m {
  29. margin: 0;
  30. position:relative;
  31. }
  32. mr {
  33. position:absolute;
  34. right:0;
  35. }
  36. .rlo {
  37. unicode-bidi: bidi-override; direction:rtl;
  38. }
  39. .lro {
  40. unicode-bidi: bidi-override;
  41. }
  42. .rtl {
  43. direction:rtl;
  44. }
  45. .ltr {
  46. direction:ltr;
  47. }
  48. .t1 m { margin: 0 -0.5ch; }
  49. </style>
  50. </head><body>
  51. <div class="test t1"><m>&nbsp;x</m></div>
  52. <div class="test rtl t1"><m>&nbsp;x</m></div>
  53. <div class="test t2"><span>xx</span></div>
  54. <div class="test rtl t2"><span>xx</span></div>
  55. <div class="test t2" style="width:3ch"><span>xx</span></div>
  56. <div class="test rtl t2" style="width:3ch"><span>xx</span></div>
  57. <div class="test"><m>X</m><mr>X</mr></div>
  58. <div class="test"><m>X</m><mr>X</mr></div>
  59. </body>
  60. </html>