tor-browser

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

dir-selector-ltr-001.html (854B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Selectors Level 4 Test: basic support for dir(ltr)</title>
      5    <link rel="author" title="Takeshi Kurosawa" href="mailto:taken.spc@gmail.com">
      6    <link rel="help" href="http://www.w3.org/TR/selectors4/#dir-pseudo">
      7    <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      8    <meta name="assert" content="The :dir(ltr) pseudo-class matches an element that has a directionality of (ltr). Since the div element has dir=ltr, the selector matches.">
      9    <style>
     10       div {
     11           width: 100px;
     12           height: 100px;
     13           background-color: red;
     14       }
     15 
     16       div:dir(ltr) {
     17           background-color: green;
     18       }
     19    </style>
     20 </head>
     21 <body>
     22    <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     23    <div dir="ltr"></div>
     24 </body>
     25 </html>