Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>CSS 2.1 Test Suite: :first-letter</title> |
michael@0 | 5 | <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> |
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/selector.html#first-letter"/> |
michael@0 | 8 | <meta name="flags" content="dom" /> |
michael@0 | 9 | <script>function setTextContent(n, t) { n.textContent = t; } |
michael@0 | 10 | |
michael@0 | 11 | var stylesheets = []; |
michael@0 | 12 | function initFuzzerSpecific() |
michael@0 | 13 | { |
michael@0 | 14 | var myStylesheetHolder = document.getElementsByTagName("head")[0]; |
michael@0 | 15 | |
michael@0 | 16 | for (var i = 0; i < 25; ++i) { |
michael@0 | 17 | var s = document.createElementNS("http://www.w3.org/1999/xhtml", 'style'); |
michael@0 | 18 | s.style.display = "none"; |
michael@0 | 19 | myStylesheetHolder.appendChild(s); |
michael@0 | 20 | stylesheets.push(s); |
michael@0 | 21 | } |
michael@0 | 22 | } |
michael@0 | 23 | </script> |
michael@0 | 24 | <style> |
michael@0 | 25 | span:before { content: open-quote; } |
michael@0 | 26 | span:after { content: close-quote; } |
michael@0 | 27 | span { quotes: '"' '"'; } |
michael@0 | 28 | </style> |
michael@0 | 29 | </head> |
michael@0 | 30 | <body> |
michael@0 | 31 | |
michael@0 | 32 | <p><span>Foo</span></p> |
michael@0 | 33 | |
michael@0 | 34 | <p id="p2"><span id="q2"></span></p> |
michael@0 | 35 | |
michael@0 | 36 | <script> |
michael@0 | 37 | document.body.offsetWidth; |
michael@0 | 38 | initFuzzerSpecific(); |
michael@0 | 39 | setTextContent(stylesheets[1], "*:after { border: 3px solid green; } :first-letter { color: green; }"); |
michael@0 | 40 | setTextContent(stylesheets[2], "*:before { counter-reset: chicken; }"); |
michael@0 | 41 | </script> |
michael@0 | 42 | |
michael@0 | 43 | </body> |
michael@0 | 44 | </html> |