bullet-space-1-ref.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Bug 1017335</title>
  6. <style>
  7. body {
  8. font-family:monospace;
  9. font-size:24px;
  10. }
  11. .outer {
  12. position:absolute;
  13. top:0;
  14. width:300px;
  15. }
  16. ul {
  17. margin:0;
  18. list-style-type:none;
  19. }
  20. span {
  21. display:inline-block;
  22. }
  23. .L {
  24. width:40px;
  25. text-align:right;
  26. }
  27. .R {
  28. width:40px;
  29. text-align:left;
  30. }
  31. .bullet {
  32. background:yellow;
  33. padding:0 2px;
  34. }
  35. .spacer {
  36. width:calc(0.5em - 2px);
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div class="outer">
  42. <div>
  43. <ul>
  44. <li>foo</li>
  45. </ul>
  46. </div>
  47. <div dir="rtl">
  48. <ul>
  49. <li>bar</li>
  50. </ul>
  51. </div>
  52. </div>
  53. <!-- The yellow background of the bullet spans here should completely cover the
  54. bullets from the <ul> items above, even though the exact positioning of the
  55. list item images may not match the plain-text version of the bullets.
  56. Therefore, the testcase (with list-style-type:disc) and reference (none)
  57. should match. -->
  58. <div class="outer">
  59. <div>
  60. <span class="L"><span class="bullet">&#x2022;</span><span class="spacer"></span></span>foo
  61. </div>
  62. <div dir="rtl">
  63. <span class="R"><span class="bullet">&#x2022;</span><span class="spacer"></span></span>bar
  64. </div>
  65. </div>
  66. </body>
  67. </html>