layout/reftests/first-letter/dynamic-1.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

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

mercurial