summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/dir-style-04-ref.html
blob: 13d394abf65a00879024f6791236b8d01a69577a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!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 { direction: ltr; color: blue; }
      .rtl { direction: rtl; color: lime; }
    </style>
  </head>
  <body>
    <div class="ltr">This element is ltr. <span>This span should
      inherit dir from the parent. <span>This span should inherit dir
      from the grandparent.</span></span>
    </div>
    <div class="rtl">This element is rtl. <span>This span should
      inherit dir from the parent. <span>This span should inherit dir
      from the grandparent.</span></span>
    </div>
  </body>
</html>