tor-browser

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

dir-style-01a.html (1693B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>CSS Test: :dir() selector</title>
      6    <link rel="author" title="Astley Chen" href="mailto:aschen@mozilla.com">
      7    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
      8    <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-dir-pseudo">
      9    <meta name="assert" content="Test checks :dir() basic functions with valid and invalid values.">
     10    <link rel="match" href="dir-style-01-ref.html">
     11    <meta name="fuzzy" content="maxDifference=0-255; totalPixels=0-30">
     12    <style>
     13      div { text-align: left; }
     14      :dir(ltr) { color: blue }
     15      :dir(rtl) { color: lime }
     16      :dir(foopy) { color: red }
     17    </style>
     18  </head>
     19  <body>
     20    <div>This element has default direction.</div>
     21    <div dir="ltr">This element is ltr.</div>
     22    <div dir="rtl">This element is rtl.</div>
     23    <div dir="ltr">
     24      <div>This element should inherit ltr.</div>
     25      <div dir="ltr">This element is ltr.</div>
     26      <div dir="rtl">This element is rtl.</div>
     27      <div><span>Every <span>word <span>in <span>this <span>element <span>should <span>inherit <span>ltr</span></span></span></span></span></span></span></span>.</div>
     28    </div>
     29    <div dir="rtl">
     30      <div>This element should inherit rtl.</div>
     31      <div dir="ltr">This element is ltr.</div>
     32      <div dir="rtl">This element is rtl.</div>
     33      <div><span>Every <span>word <span>in <span>this <span>element <span>should <span>inherit <span>rtl</span></span></span></span></span></span></span></span>.</div>
     34    </div>
     35    <div dir="foopy">This element has an invalid dir attribute and
     36      should have default direction.</div>
     37  </body>
     38 </html>