border-separate-opacity-table-row-group-ref.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html lang="en-US">
  4. <head>
  5. <title>Table background tests</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <meta http-equiv="Content-Style-Type" content="text/css">
  8. <style type="text/css">
  9. html, body { margin: 0; padding: 0; border: 0; font-size: 16px; }
  10. body { padding: 15px; }
  11. .o { opacity: 0.5; }
  12. /*
  13. table {
  14. margin: 0px 3px 2px 4px;
  15. border-width: 4px 2px 7px 3px;
  16. border-box height is 145px:
  17. border-top: 4px;
  18. padding-top: 3px
  19. border-spacing: 3px * 6 == 18px
  20. cell * 5: == 21px * 5 == 105px
  21. border-top: 2px;
  22. padding-top: 1px;
  23. height: 10px;
  24. padding-bottom: 4px;
  25. border-bottom: 4px;
  26. padding-bottom: 8px;
  27. border-bottom: 7px;
  28. border-box width is 325px:
  29. border-left: 3px;
  30. padding-left: 6px
  31. border-spacing: 2px * 6 == 12px
  32. cell * 5: == 59px * 5 == 295px
  33. border-left: 3px;
  34. padding-left: 3px;
  35. width: 50px;
  36. padding-right: 2px;
  37. border-right: 1px;
  38. padding-right: 7px;
  39. border-right: 2px;
  40. */
  41. div.color, div.imagetl, div.imagebr {
  42. width: 303px; height: 69px; margin: 34px 14px 78px 15px;
  43. }
  44. div.color { background-color: aqua; }
  45. div.imagetl, div.imagebr {
  46. background-image: url(repeatable-diagonal-gradient-with-ticks.png);
  47. }
  48. div.imagetl { background-position: 0 0; }
  49. div.imagebr { background-position: 303px 69px; }
  50. div.vstripe, div.hstripe { background: white; position: absolute; }
  51. div.vstripe { top: 0; width: 2px; height: 500px; }
  52. div.hstripe { left: 0; height: 3px; width: 400px; }
  53. </style>
  54. </head>
  55. <body>
  56. <div class="color"></div>
  57. <div class="imagetl o"></div>
  58. <div class="imagebr o"></div>
  59. <div class="hstripe" style="top: 46px"></div>
  60. <div class="hstripe" style="top: 70px"></div>
  61. <div class="hstripe" style="top: 94px"></div>
  62. <div class="hstripe" style="top: 118px"></div>
  63. <div class="hstripe" style="top: 193px"></div>
  64. <div class="hstripe" style="top: 217px"></div>
  65. <div class="hstripe" style="top: 241px"></div>
  66. <div class="hstripe" style="top: 265px"></div>
  67. <div class="hstripe" style="top: 340px"></div>
  68. <div class="hstripe" style="top: 364px"></div>
  69. <div class="hstripe" style="top: 388px"></div>
  70. <div class="hstripe" style="top: 412px"></div>
  71. <div class="vstripe" style="left: 89px"></div>
  72. <div class="vstripe" style="left: 150px"></div>
  73. <div class="vstripe" style="left: 211px"></div>
  74. <div class="vstripe" style="left: 272px"></div>
  75. <div class="vstripe" style="left: 333px"></div>
  76. </body>
  77. </html>