tor-browser

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

wm-propagation-body-042.html (2352B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Writing Modes Test: 'writing-mode: sideways-rl' set to &lt;body&gt; element propagates to viewport</title>
      6 
      7  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
      8  <link rel="help" href="https://www.w3.org/TR/css-writing-modes-4/#principal-flow" title="8. The Principal Writing Mode">
      9  <!--
     10  Issue 3066: [css-writing-modes] Does vertical writing mode of an HTML body
     11  element cause an orthogonal flow?
     12  https://github.com/w3c/csswg-drafts/issues/3066
     13  -->
     14  <link rel="match" href="wm-propagation-body-042-ref.html">
     15 
     16  <meta name="assert" content="This test checks that when the root element has a &lt;body&gt; child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Finally, in order to make sure that the principal writing mode is indeed 'sideways-rl', the test checks that a simple text is not affected by 'text-orientation: upright' since 'text-orientation: upright' should have no impact and no rendering effect on it.">
     17 
     18  <!--
     19  Tests 032 to 035: html's writing-mode is not specified
     20 
     21  Tests 036 to 039: html's writing-mode is specified as horizontal-tb
     22 
     23  Tests 040 to 043: html's writing-mode is specified as vertical-rl
     24 
     25  Tests 044 to 047: html's writing-mode is specified as vertical-lr
     26 
     27  Tests 048 to 051: html's writing-mode is specified as sideways-rl
     28 
     29  Tests 052 to 055: html's writing-mode is specified as sideways-lr
     30  -->
     31 
     32  <style>
     33  html
     34    {
     35      writing-mode: vertical-rl;
     36    }
     37 
     38  html::after
     39    {
     40      content: "This text must be written sideways: vertically, with letters rotated 90 degrees.";
     41      text-orientation: upright;
     42      /* 'text-orientation: upright' has no effect with 'sideways-rl', but does with 'vertical-rl' */
     43    }
     44 
     45  body
     46    {
     47      writing-mode: sideways-rl;
     48    }
     49 
     50  div
     51    {
     52      background-color: blue;
     53      height: 100px;
     54      width: 100px;
     55    }
     56  </style>
     57 
     58 <body>
     59 
     60  <div></div>
     61 
     62  <p><img src="support/block-flow-direction-025-exp-res.png" width="359" height="36" alt="Image download support must be enabled">
     63 
     64  <!--
     65  The image says:
     66  Test passes if there is a blue square in the
     67  <strong>upper-right corner</strong> of the page.
     68  -->