Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>CSS 2.1 Test Suite: generated content</title> |
michael@0 | 5 | <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" /> |
michael@0 | 6 | <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> |
michael@0 | 7 | <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content"/> |
michael@0 | 8 | <meta name="flags" content="dom" /> |
michael@0 | 9 | <style> |
michael@0 | 10 | body::before { |
michael@0 | 11 | content:"Before"; |
michael@0 | 12 | border:inherit; |
michael@0 | 13 | } |
michael@0 | 14 | .cl::after { |
michael@0 | 15 | display:block; |
michael@0 | 16 | content:"After"; |
michael@0 | 17 | } |
michael@0 | 18 | </style> |
michael@0 | 19 | <script> |
michael@0 | 20 | function fixupDOM() { |
michael@0 | 21 | document.body.setAttribute("style", "border:2px solid red;"); |
michael@0 | 22 | document.body.className = "cl"; |
michael@0 | 23 | document.documentElement.className = ""; |
michael@0 | 24 | } |
michael@0 | 25 | </script> |
michael@0 | 26 | </head> |
michael@0 | 27 | <body onload="fixupDOM()"> |
michael@0 | 28 | </body> |
michael@0 | 29 | </html> |