tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

css3-modsel-d1.xml (959B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4  <title>NEGATED Dynamic handling of :empty</title>
      5  <style type="text/css"><![CDATA[
      6   #test { background: red; display: block; padding: 1em; }
      7   #test:not(:empty) { background: lime; }
      8 ]]></style>
      9  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
     10  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found -->
     11  <meta name="flags" content=" dom" />
     12 </head>
     13 <body>
     14 
     15 <div>
     16 
     17  <script type="text/javascript">
     18   <![CDATA[
     19 
     20    function test() {
     21      document.getElementById('test').appendChild(document.createTextNode('This line should be green.'));
     22    }
     23 
     24    window.setTimeout("test()", 100);
     25   ]]>
     26  </script>
     27 
     28  <p> The following bar should be green. </p>
     29 
     30  <div id="test"></div>
     31 
     32 </div>
     33 
     34 </body>
     35 </html>