tor-browser

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

text-align-match-parent-001.html (839B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: text-align - match-parent (basic)</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com">
      6 <link rel="help" title="7.1. Text Alignment: the 'text-align' property" href="http://www.w3.org/TR/css-text-3/#text-align">
      7 <link rel="match" href="text-align-007-ref.html">
      8 <meta name="assert" content="The 'text-align' property set to 'match-parent' on a block element behaves the same as 'inherit'.">
      9 <style>
     10  body {
     11    text-align: end;
     12  }
     13 
     14  p {
     15    text-align: left;
     16  }
     17 
     18  div {
     19    border: 1px solid blue;
     20    text-align: match-parent;
     21  }
     22 </style>
     23 <body>
     24  <p>Test passes if the words "Filler Text" below are aligned to the right, inside the blue box.</p>
     25  <div>Filler Text</div>
     26 </body>