acid1.rml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <rml>
  2. <head>
  3. <title>display/box/float/clear test</title>
  4. <link type="text/rcss" href="../style.rcss"/>
  5. <link rel="source" href="https://www.w3.org/Style/CSS/Test/CSS1/current/test5526c.htm" />
  6. <link rel="help" href="http://www.w3.org/TR/REC-CSS1#clear" />
  7. <link rel="reference" href="https://www.w3.org/Style/CSS/Test/CSS1/current/sec5526c.gif" />
  8. <meta name="description" content="This is the ACID1 test. Some minor modifications have been applied such as matching fonts and borders to the RmlUi syntax." />
  9. <style type="text/css">
  10. /* RmlUi does not accept styling of the html/rml element, they have been moved into body. */
  11. body {
  12. font-size: 10dp;
  13. line-height: 1;
  14. color: white;
  15. margin: 1.5em;
  16. border: .5em black;
  17. padding: 0;
  18. width: 48em;
  19. background-color: white;
  20. bottom: auto;
  21. }
  22. dl {
  23. margin: 0;
  24. border: 0;
  25. padding: .5em;
  26. }
  27. dt {
  28. background-color: rgb(204, 0, 0);
  29. margin: 0;
  30. padding: 1em;
  31. width: 10.638%; /* refers to parent element's width of 47em. = 5em or 50dp */
  32. height: 28em;
  33. border: .5em black;
  34. float: left;
  35. }
  36. dd {
  37. float: right;
  38. margin: 0 0 0 1em;
  39. border: 1em black;
  40. padding: 1em;
  41. width: 34em;
  42. height: 27em;
  43. }
  44. ul {
  45. margin: 0;
  46. border: 0;
  47. padding: 0;
  48. }
  49. li {
  50. display: block; /* i.e., suppress marker */
  51. color: black;
  52. height: 9em;
  53. width: 5em;
  54. margin: 0;
  55. border: .5em black;
  56. padding: 1em;
  57. float: left;
  58. background-color: #FC0;
  59. }
  60. #bar {
  61. background-color: black;
  62. color: white;
  63. width: 41.17%; /* = 14em */
  64. border: 0;
  65. margin: 0 1em;
  66. }
  67. #baz {
  68. margin: 1em 0;
  69. border: 0;
  70. padding: 1em;
  71. width: 10em;
  72. height: 10em;
  73. background-color: black;
  74. color: white;
  75. }
  76. form {
  77. margin: 0;
  78. display: inline;
  79. }
  80. p {
  81. margin: 0;
  82. }
  83. form p {
  84. line-height: 1.9;
  85. }
  86. blockquote {
  87. margin: 1em 1em 1em 2em;
  88. border-width: 1em 1.5em 2em .5em;
  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 indistinguishably (to the pixel) from this
  158. <a href="sec5526c.gif">reference rendering,</a>
  159. (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">parent page</a>.
  160. </p>
  161. </body>
  162. </rml>