summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/dir-style-03-ref.html
blob: 8c2a60745a87a29c17ce9d5464aa5a0bf6a56ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>dir() selector reference</title>
    <link rel="author" title="Astley Chen" href="mailto:aschen@mozilla.com">
    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
    <style>
      div { text-align: left; }
      .ltr { color: blue; direction: ltr }
      .rtl { color: lime; direction: rtl }
    </style>
  </head>
  <body>
    <div class="rtl">This element is rtl.</div>
    <div class="ltr">This element has default direction.</div>
  </body>
</html>