tor-browser

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

dir-selector-white-space-001.html (1040B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Selectors Level 4 Test: Verify for an identifier with leading and tailing whitespace of dir() </title>
      5    <link rel="author" title="Miyoung Shin" href="mailto:myid.shin@igalia.com">
      6    <link rel="help" href="http://www.w3.org/TR/selectors4/#dir-pseudo">
      7    <link rel="match" href="dir-selector-white-space-001-ref.html">
      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       #a:dir( ltr) { background-color: green; }
     17       #b:dir(ltr ) { background-color: green; }
     18       #c:dir( ltr ) { background-color: green; }
     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 id="a" dir="ltr"></div>
     24    <div id="b" dir="ltr"></div>
     25    <div id="c" dir="ltr"></div>
     26 </body>
     27 </html>