backgr_layers-show.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  4. <title>empty-cells: show</title>
  5. <link rel="next" href="backgr_layers-hide.html" title="Background Layers: empty-cell: hide">
  6. <link rel="prev" href="backgr_position-table-cell.html" title="Background Position: Background on 'table-cell'">
  7. <link rel="contents" href="./backgr_index.html" title="Table of Contents">
  8. <link rel="stylesheet" type="text/css" href="common.css">
  9. <style type="text/css">
  10. table {background: blue; empty-cells: show}
  11. tbody, thead {background: url(edge.gif) right top no-repeat}
  12. tr {background: url(edge.gif) 0 10px no-repeat}
  13. .colgroup-A {background: url(edge.gif) 100% 20px no-repeat}
  14. .col-3 {background: url(edge.gif) 0 30px no-repeat}
  15. .c {background: url(edge.gif) -20px 100% no-repeat; min-height: 50px}
  16. </style>
  17. </head>
  18. <body>
  19. <h1>CSS2 Table Backgrounds Test Suite</h1>
  20. <h2>Part C: Background Layers</h2>
  21. <h3>empty-cells: show</h3>
  22. <p>Both tables should have a blue background.</p>
  23. <p>In table cell C (third cell in the first row), which is empty:</p>
  24. <ul>
  25. <li>Four sets of horizontal double violet stripes surrounded by aqua should run just inside the top border edge.
  26. <li>One set of aqua-backed double violet stripes should run just inside the left, right, and bottom border edges.
  27. <li>The third set along the top should turn down at the right edge and go under the fourth set to form the right-edge set.
  28. <li>The fourth set should turn down at the left edge to form the left set.
  29. <li>The bottom stripe should be straight and cut across <em>over</em> the side sets.
  30. </ul>
  31. <p>In table cell A, (first cell in the first row):</p>
  32. <ul>
  33. <li>Three sets of horizontal aqua-backed double violet stripes should run just inside the top border edge.
  34. <li>The first set should run across.
  35. <li>The second set should turn down at the left edge, going over the third set to form another set that runs just inside the left border edge.
  36. </ul>
  37. <p>In table cell D, (last cell in the first row):</p>
  38. <ul>
  39. <li>Two sets of horizontal aqua-backed double violet strips should run just inside the top border edge.
  40. <li>The first set should turn down at the right edge, going under the second horizontal set to run vertically just inside the right border edge.
  41. </ul>
  42. <p>In table cell G, (third cell in the second row):</p>
  43. <ul>
  44. <li>Two sets of horizontal aqua-backed double violet stripes should run just inside the top border edge.
  45. <li>A set of vertical stripes should run down just inside the left border edge, going under both horizontal stripes.
  46. <li>Another set of vertical stripes should run down just inside the right border edge, also going under both horizontal stripes.
  47. </ul>
  48. <dl>
  49. <dt>next
  50. <dd><a href="backgr_layers-hide.html">Background Layers: empty-cells: show</a>
  51. <dt>previous
  52. <dd><a href="backgr_position-table-cell.html">Background Position: Background on 'table-cell'</a>
  53. <dt>contents
  54. <dd><a href="./backgr_index.html">Table of Contents</a>
  55. </dl>
  56. <table class="separate">
  57. <caption>With 'border-collapse: separate'</caption>
  58. <colgroup class="colgroup-A">
  59. <col class="col-1">
  60. <col class="col-2">
  61. <col class="col-3">
  62. </colgroup>
  63. <colgroup class="colgroup-B">
  64. <col class="col-4">
  65. </colgroup>
  66. <thead>
  67. <tr class="th-row-1">
  68. <th class="a">TH A</th>
  69. <th class="b">TH B</th>
  70. <th class="c"></th>
  71. <th class="d">TH D</th>
  72. </tr>
  73. </thead>
  74. <tfoot>
  75. <tr class="tb-row-1">
  76. <td class="m" colspan=2>TD M</td>
  77. <td class="o">TD O</td>
  78. <td class="p">TD P</td>
  79. </tfoot>
  80. <tbody>
  81. <tr class="tb-row-1">
  82. <td class="e" rowspan=2>TD E</td>
  83. <td class="f">TD F</td>
  84. <td class="g">TD G</td>
  85. <td class="h">TD H</td>
  86. </tr>
  87. <tr class="tb-row-2">
  88. <td class="j">TD J</td>
  89. <td class="k">TD K</td>
  90. <td class="l">TD L</td>
  91. </tr>
  92. </tbody>
  93. </table>
  94. <table class="collapse">
  95. <caption>With 'border-collapse: collapse'</caption>
  96. <colgroup class="colgroup-A">
  97. <col class="col-1">
  98. <col class="col-2">
  99. <col class="col-3">
  100. </colgroup>
  101. <colgroup class="colgroup-B">
  102. <col class="col-4">
  103. </colgroup>
  104. <thead>
  105. <tr class="th-row-1">
  106. <th class="a">TH A</th>
  107. <th class="b">TH B</th>
  108. <th class="c"></th>
  109. <th class="d">TH D</th>
  110. </tr>
  111. </thead>
  112. <tfoot>
  113. <tr class="tb-row-1">
  114. <td class="m" colspan=2>TD M</td>
  115. <td class="o">TD O</td>
  116. <td class="p">TD P</td>
  117. </tfoot>
  118. <tbody>
  119. <tr class="tb-row-1">
  120. <td class="e" rowspan=2>TD E</td>
  121. <td class="f">TD F</td>
  122. <td class="g">TD G</td>
  123. <td class="h">TD H</td>
  124. </tr>
  125. <tr class="tb-row-2">
  126. <td class="j">TD J</td>
  127. <td class="k">TD K</td>
  128. <td class="l">TD L</td>
  129. </tr>
  130. </tbody>
  131. </table>
  132. <div class="validity">
  133. <a href="http://validator.w3.org/check/referer"><img
  134. src="valid-html401.png" height="31" width="88"
  135. alt="Valid HTML 4.01!"></a>
  136. </div>
  137. <address>
  138. CSS2 Table Backgrounds Test Suite designed and written by fantasai &lt;fantasai&#64;escape.com&gt;
  139. </address>
  140. </body>
  141. </html>