tor-browser

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

nth-child-and-nth-last-child-ref.html (1195B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <style>
      5    target {
      6        background-color: red;
      7    }
      8 
      9    #success1, #success2, #success3 {
     10        background-color: green;
     11    }
     12 </style>
     13 </head>
     14 <body>
     15    <p>Test the matching of an element only if it is the only child matching the selector list. If the test succeed, every instance of the text "Success" should be on green background.</p>
     16    <div>
     17        <div></div>
     18        <target>Foo</target>
     19        <div></div>
     20        <target>Bar</target>
     21        <div></div>
     22    </div>
     23    <div>
     24        <div></div>
     25        <div></div>
     26        <target id="success1">Success</target>
     27        <div></div>
     28    </div>
     29    <div>
     30        <div></div>
     31        <target>Foo</target>
     32        <div></div>
     33        <target>Bar</target>
     34        <div></div>
     35    </div>
     36    <div>
     37        <div></div>
     38        <div></div>
     39        <target id="success2">Success</target>
     40        <div></div>
     41    </div>
     42    <div>
     43        <div></div>
     44        <target>Foo</target>
     45        <div></div>
     46        <target>Bar</target>
     47        <div></div>
     48    </div>
     49    <div>
     50        <div></div>
     51        <div></div>
     52        <target id="success3">Success</target>
     53        <div></div>
     54    </div>
     55 </body>
     56 </html>