tor-browser

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

text-align-match-parent-002.html (737B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: text-align - computed value for match-parent on the root element</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-text/#valdef-text-align-match-parent">
      5 <meta name="assert" content="'text-align: match-parent' on the root element with 'direction: rtl' should compute to 'start'.">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <style>
      9  html {
     10    text-align: match-parent;
     11    direction: rtl;
     12  }
     13  #log {
     14    direction: ltr;
     15    text-align: start;
     16  }
     17 </style>
     18 <div id="log"></div>
     19 <script>
     20  test(() => {
     21    assert_equals(getComputedStyle(document.documentElement).textAlign, 'start');
     22  });
     23 </script>