tor-browser

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

dir-style-02a.html (1309B)


      1 <!DOCTYPE html>
      2 <html dir="rtl">
      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 when default document directionality is rtl.">
     10    <link rel="match" href="dir-style-02-ref.html">
     11    <style>
     12      div { text-align: left; }
     13      :dir(ltr) { color: blue }
     14      :dir(rtl) { color: lime }
     15      :dir(foopy) { color: red }
     16    </style>
     17  </head>
     18  <body>
     19    <div>This element has default direction.</div>
     20    <div dir="ltr">This element is ltr.</div>
     21    <div dir="rtl">This element is rtl.</div>
     22    <div dir="ltr">
     23      <div>This element should inherit ltr.</div>
     24      <div dir="ltr">This element is ltr.</div>
     25      <div dir="rtl">This element is rtl.</div>
     26    </div>
     27    <div dir="rtl">
     28      <div>This element should inherit rtl.</div>
     29      <div dir="ltr">This element is ltr.</div>
     30      <div dir="rtl">This element is rtl.</div>
     31    </div>
     32    <div dir="foopy">This element has an invalid dir attribute and
     33      should have default direction.</div>
     34  </body>
     35 </html>