tor-browser

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

text-align-computed.html (953B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Text Module Test: getComputedStyle().textAlign</title>
      6 <link rel="help" href="https://www.w3.org/TR/css-text-3/#propdef-text-align">
      7 <meta name="assert" content="text-align computed value is as specified.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/computed-testcommon.js"></script>
     11 <style>
     12  #container {
     13    text-align: center;
     14  }
     15 </style>
     16 </head>
     17 <body>
     18 <div id="container">
     19  <div id="target"></div>
     20 </div>
     21 <script>
     22 test_computed_value("text-align", "start");
     23 test_computed_value("text-align", "end");
     24 test_computed_value("text-align", "left");
     25 test_computed_value("text-align", "right");
     26 test_computed_value("text-align", "center");
     27 test_computed_value("text-align", "justify");
     28 test_computed_value("text-align", "match-parent", "center");
     29 
     30 // TODO: Test justify-all
     31 </script>
     32 </body>
     33 </html>