tor-browser

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

css3-modsel-d1b.xml (1160B)


      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>Dynamic handling of :empty</title>
      5  <style type="text/css"><![CDATA[
      6   #test1 { background: red; display: block; padding: 1em; margin: 1em; }
      7   #test1:empty { background: lime; }
      8   #test2 { background: lime; display: block; padding: 1em; margin: 1em; }
      9   #test2:empty { background: red; }
     10 ]]></style>
     11  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
     12  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found -->
     13  <meta name="flags" content=" dom" />
     14 </head>
     15 <body>
     16 
     17 <div>
     18 
     19  <script type="text/javascript">
     20   <![CDATA[
     21 
     22    function test() {
     23      document.getElementById('test1').appendChild(document.createTextNode(''));
     24      document.getElementById('test2').appendChild(document.createTextNode(' '));
     25    }
     26 
     27    window.setTimeout("test()", 100);
     28   ]]>
     29  </script>
     30 
     31  <p> The following two bars should be green. </p>
     32 
     33  <div id="test1"></div>
     34  <div id="test2"></div>
     35 
     36 </div>
     37 
     38 </body>
     39 </html>