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