29c051b35bf6229d841fd5ab171e031b43911757.svn-base 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
  2. <html>
  3. <head>
  4. <title>
  5. display/box/float/clear test
  6. </title>
  7. <style type="text/css">
  8. /* last modified: 1 Dec 98 */
  9. html {
  10. font: 10px/1 Verdana, sans-serif;
  11. background-color: blue;
  12. color: white;
  13. }
  14. body {
  15. margin: 1.5em;
  16. border: .5em solid black;
  17. padding: 0;
  18. width: 48em;
  19. background-color: white;
  20. }
  21. dl {
  22. margin: 0;
  23. border: 0;
  24. padding: .5em;
  25. }
  26. dt {
  27. background-color: rgb(204,0,0);
  28. margin: 0;
  29. padding: 1em;
  30. width: 10.638%; /* refers to parent element's width of 47em. = 5em or 50px */
  31. height: 28em;
  32. border: .5em solid black;
  33. float: left;
  34. }
  35. dd {
  36. float: right;
  37. margin: 0 0 0 1em;
  38. border: 1em solid black;
  39. padding: 1em;
  40. width: 34em;
  41. height: 27em;
  42. }
  43. ul {
  44. margin: 0;
  45. border: 0;
  46. padding: 0;
  47. }
  48. li {
  49. display: block; /* i.e., suppress marker */
  50. color: black;
  51. height: 9em;
  52. width: 5em;
  53. margin: 0;
  54. border: .5em solid black;
  55. padding: 1em;
  56. float: left;
  57. background-color: #FC0;
  58. }
  59. #bar {
  60. background-color: black;
  61. color: white;
  62. width: 41.17%; /* = 14em */
  63. border: 0;
  64. margin: 0 1em;
  65. }
  66. #baz {
  67. margin: 1em 0;
  68. border: 0;
  69. padding: 1em;
  70. width: 10em;
  71. height: 10em;
  72. background-color: black;
  73. color: white;
  74. }
  75. form {
  76. margin: 0;
  77. display: inline;
  78. }
  79. p {
  80. margin: 0;
  81. }
  82. form p {
  83. line-height: 1.9;
  84. }
  85. blockquote {
  86. margin: 1em 1em 1em 2em;
  87. border-width: 1em 1.5em 2em .5em;
  88. border-style: solid;
  89. border-color: black;
  90. padding: 1em 0;
  91. width: 5em;
  92. height: 9em;
  93. float: left;
  94. background-color: #FC0;
  95. color: black;
  96. }
  97. address {
  98. font-style: normal;
  99. }
  100. h1 {
  101. background-color: black;
  102. color: white;
  103. float: left;
  104. margin: 1em 0;
  105. border: 0;
  106. padding: 1em;
  107. width: 10em;
  108. height: 10em;
  109. font-weight: normal;
  110. font-size: 1em;
  111. }
  112. </style>
  113. </head>
  114. <body>
  115. <dl>
  116. <dt>
  117. toggle
  118. </dt>
  119. <dd>
  120. <ul>
  121. <li>
  122. the way
  123. </li>
  124. <li id="bar">
  125. <p>
  126. the world ends
  127. </p>
  128. <form action="./" method="get">
  129. <p>
  130. bang
  131. <input type="radio" name="foo" value="off">
  132. </p>
  133. <p>
  134. whimper
  135. <input type="radio" name="foo2" value="on">
  136. </p>
  137. </form>
  138. </li>
  139. <li>
  140. i grow old
  141. </li>
  142. <li id="baz">
  143. pluot?
  144. </li>
  145. </ul>
  146. <blockquote>
  147. <address>
  148. bar maids,
  149. </address>
  150. </blockquote>
  151. <h1>
  152. sing to me, erbarme dich
  153. </h1>
  154. </dd>
  155. </dl>
  156. <p style="color: black; font-size: 1em; line-height: 1.3em; clear: both">
  157. This is a nonsensical document, but syntactically valid HTML 4.0. All 100% conformant CSS1 agents should be able to render the document elements above this paragraph <b>indistinguishably</b> (to the pixel) from this reference rendering, (except font rasterization and form widgets). All discrepancies should be traceable to CSS1 implementation shortcomings. Once you have finished evaluating this test, you can return to the <A HREF="sec5526c.htm" style="text-decoration:none">parent page</A>.
  158. </p>
  159. <script type="text/javascript" src="../dist/html2canvas.js"></script>
  160. <script type="text/javascript">
  161. html2canvas(document.body).then(function(canvas) {
  162. document.body.appendChild(canvas);
  163. });
  164. </script>
  165. </body>
  166. </html>