https://github.com/mozilla/gecko-dev
Raw File
Tip revision: f38413e361b0d1483de9749bc680070e2a5e3346 authored by tbirdbld on 31 October 2011, 20:03:38 UTC
Added tag THUNDERBIRD_8_0b4_RELEASE for changeset 317fabbef86b. CLOSED TREE a=release
Tip revision: f38413e
out-of-flow-1d.html
<!DOCTYPE html>
<html>
  <head>
    <title>CSS 2.1 Test Suite: :first-line</title>
    <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
    <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
    <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line"/>
    <meta name="flags" content="dom" />
    <style>
      div { color: green }
      div::first-line { color: red }
    </style>
    <script>
      function runTest() {
        var s = document.createElement("span");
        s.setAttribute("style", "float: left");
        s.appendChild(document.createTextNode("This should be green"));
        var i = document.getElementById("i");
        i.parentNode.insertBefore(s, i);
      }
    </script>
  </head>
  <body onload="runTest()">
    <div><span id="i"></span></div>
  </body>
</html>

back to top