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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. /*
  12. table {
  13. margin: 0px 3px 2px 4px;
  14. border-width: 4px 2px 7px 3px;
  15. border-box height is 145px:
  16. border-top: 4px;
  17. padding-top: 3px
  18. border-spacing: 3px * 6 == 18px
  19. cell * 5: == 21px * 5 == 105px
  20. border-top: 2px;
  21. padding-top: 1px;
  22. height: 10px;
  23. padding-bottom: 4px;
  24. border-bottom: 4px;
  25. padding-bottom: 8px;
  26. border-bottom: 7px;
  27. border-box width is 325px:
  28. border-left: 3px;
  29. padding-left: 6px
  30. border-spacing: 2px * 6 == 12px
  31. cell * 5: == 59px * 5 == 295px
  32. border-left: 3px;
  33. padding-left: 3px;
  34. width: 50px;
  35. padding-right: 2px;
  36. border-right: 1px;
  37. padding-right: 7px;
  38. border-right: 2px;
  39. */
  40. div.color, div.imagetl, div.imagebr {
  41. width: 303px; height: 69px; margin: 34px 14px 78px 15px;
  42. }
  43. div.color { background-color: aqua; }
  44. div.imagetl, div.imagebr {
  45. background-image: url(repeatable-diagonal-gradient-with-ticks.png);
  46. }
  47. div.imagetl { background-position: 0 0; }
  48. div.imagebr { background-position: 303px 69px; }
  49. div.vstripe, div.hstripe { background: white; position: absolute; }
  50. div.vstripe { top: 0; width: 2px; height: 500px; }
  51. div.hstripe { left: 0; height: 3px; width: 400px; }
  52. </style>
  53. </head>
  54. <body>
  55. <div class="color"></div>
  56. <div class="imagetl"></div>
  57. <div class="imagebr"></div>
  58. <div class="hstripe" style="top: 46px"></div>
  59. <div class="hstripe" style="top: 70px"></div>
  60. <div class="hstripe" style="top: 94px"></div>
  61. <div class="hstripe" style="top: 118px"></div>
  62. <div class="hstripe" style="top: 193px"></div>
  63. <div class="hstripe" style="top: 217px"></div>
  64. <div class="hstripe" style="top: 241px"></div>
  65. <div class="hstripe" style="top: 265px"></div>
  66. <div class="hstripe" style="top: 340px"></div>
  67. <div class="hstripe" style="top: 364px"></div>
  68. <div class="hstripe" style="top: 388px"></div>
  69. <div class="hstripe" style="top: 412px"></div>
  70. <div class="vstripe" style="left: 89px"></div>
  71. <div class="vstripe" style="left: 150px"></div>
  72. <div class="vstripe" style="left: 211px"></div>
  73. <div class="vstripe" style="left: 272px"></div>
  74. <div class="vstripe" style="left: 333px"></div>
  75. </body>
  76. </html>