false-marker-overlap.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE HTML>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/licenses/publicdomain/
  5. Test: false marker overlap
  6. -->
  7. <html><head>
  8. <title>text-overflow: false marker overlap</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. white-space: nowrap;
  20. text-overflow: ellipsis ellipsis;
  21. color: black;
  22. height: 6em;
  23. width: 32.5em;
  24. margin-bottom: 1em;
  25. }
  26. i {
  27. display:inline-block;
  28. height: 3em;
  29. width: 3em;
  30. border:1px solid blue;
  31. text-shadow: none;
  32. }
  33. .rtl {
  34. direction:rtl;
  35. }
  36. .rlo {
  37. unicode-bidi: bidi-override; direction: rtl;
  38. }
  39. .lro {
  40. unicode-bidi: bidi-override; direction: ltr;
  41. }
  42. s {
  43. float:right;
  44. width:3em;
  45. height:3em;
  46. margin-right:-0.6em;
  47. border:1px solid red;
  48. }
  49. .rtl s {
  50. float:left;
  51. margin-left:-0.6em;
  52. margin-right:0;
  53. }
  54. .overlap {margin-left:-0.6em;}
  55. .rtl .overlap {margin-right:-0.6em;margin-left:0;}
  56. .n {padding-left:0.6em;}
  57. .rtl .n {padding-right:0.6em;padding-left:0;}
  58. </style>
  59. </head><body>
  60. <div class="test"><font class="overlap"><s></s>| | | | | | | | | | | | | | | | | | | | | | | <i class="n"></i></font></div>
  61. <div class="test"><font><s></s>| | | | | | | | | | | | | | | | | | | | | | | <i></i></font></div>
  62. <div class="test rtl"><font class="overlap"><s></s>| | | | | | | | | | | | | | | | | | | | | | | <i class="n"></i></font></div>
  63. <div class="test rtl"><font><s></s>| | | | | | | | | | | | | | | | | | | | | | | <i></i></font></div>
  64. </body></html>