tor-browser

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

nth-child-of-attribute.html (1311B)


      1 <!DOCTYPE html>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4  <title>Test nth-child selector argument</title>
      5  <link rel="author" title="Chris Burdess" href="mailto:chris@bfo.com"/>
      6  <link rel="help" href="https://www.w3.org/TR/selectors-4/#the-nth-child-pseudo"/>
      7  <link rel="match" href="../reference/ref-filled-green-100px-square.xht"/>
      8  <style type="text/css">
      9    div {
     10        display: block;
     11        width: 100px;
     12        height: 10px;
     13        background-color: red;
     14    }
     15    .container {
     16        height: 100px;
     17    }
     18    .reference {
     19        background-color: green;
     20    }
     21    div:nth-child(3n-1 of [align]) { /* selects 2,5,8 of divs that have an align attribute */
     22        background-color: green;
     23    }
     24  </style>
     25 </head>
     26 <body>
     27  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     28  <div class="container">
     29   <div class="reference"></div>
     30   <div class="reference" align="left"></div>
     31   <div class="test" align="left"></div>
     32   <div class="reference" align="left"></div>
     33   <div class="reference" align="left"></div>
     34   <div class="reference"></div>
     35   <div class="test" align="left"></div>
     36   <div class="reference" align="left"></div>
     37   <div class="reference" align="left"></div>
     38   <div class="test" align="left"></div>
     39  </div>
     40 </body>
     41 </html>