anonymous-block.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE HTML>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/licenses/publicdomain/
  5. Test: overflowing anonymous block should not have marker
  6. -->
  7. <html><head>
  8. <title>text-overflow: anonymous block</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. text-overflow:ellipsis;
  19. overflow:hidden;
  20. width:50%;
  21. height:10em;
  22. border:1px solid black;
  23. white-space:pre;
  24. margin-left:2em;
  25. margin-bottom:2em;
  26. line-height:1.5em;
  27. }
  28. i {
  29. display:inline-block;
  30. height: 3em;
  31. width: 5em;
  32. background: blue;
  33. font-style:normal;
  34. }
  35. span {
  36. position:relative;
  37. background:pink;
  38. top:40px;
  39. left:16em;
  40. }
  41. .t1 {width:6em;}
  42. .t2 {width:2em;}
  43. .t3 {width:25em;}
  44. .t4 {width:17.5em;}
  45. input { font-family:DejaVuSansMono; }
  46. input::placeholder {
  47. overflow:hidden;
  48. text-overflow:ellipsis;
  49. }
  50. input.t5::placeholder {
  51. text-overflow:"X";
  52. }
  53. </style>
  54. </head><body>
  55. <div class="test t1"><x>Some overly <span>long<i style="display:block;">anonymous<br>block</i>and</span> uninformative sentence</x></div>
  56. <div class="test t2"><x>Some overly long<i style="display:block;">anonymous<br>block</i>and uninformative sentence</x></div>
  57. <div class="test t3"><x>Some overly <span>long<i style="display:block;">anonymous<br>block</i>and</span> uninformative sentence</x></div>
  58. <div class="test t4"><x>Some overly <span>long<i style="display:block;">anonymous<br>block</i>and</span> uninformative sentence</x></div>
  59. <input size="4" placeholder="placeholder">
  60. <input size="4" dir="rtl" placeholder="placeholder">
  61. <input size="4" class="t5" placeholder="placeholder">
  62. <input size="4" class="t5" dir="rtl" placeholder="placeholder">
  63. </body>
  64. </html>