wm-propagation-body-036.html (2019B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Writing Modes Test: 'writing-mode: vertical-rl' set to <body> 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-3/#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="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1102175" title="Bug 1102175: <body> with writing-mode: vertical-rl does not align children to the right "> 15 <link rel="match" href="block-flow-direction-025-ref.xht"> 16 17 <meta name="assert" content="This test checks that when the root element has a <body> 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."> 18 19 <!-- 20 Tests 032 to 035: html's writing-mode is not specified 21 22 Tests 036 to 039: html's writing-mode is specified as horizontal-tb 23 24 Tests 040 to 043: html's writing-mode is specified as vertical-rl 25 26 Tests 044 to 047: html's writing-mode is specified as vertical-lr 27 28 Tests 048 to 051: html's writing-mode is specified as sideways-rl 29 30 Tests 052 to 055: html's writing-mode is specified as sideways-lr 31 --> 32 33 <style> 34 html 35 { 36 writing-mode: horizontal-tb; 37 } 38 39 body 40 { 41 writing-mode: vertical-rl; 42 } 43 44 div 45 { 46 background-color: blue; 47 height: 100px; 48 width: 100px; 49 } 50 </style> 51 52 <body> 53 54 <div></div> 55 56 <p><img src="support/block-flow-direction-025-exp-res.png" width="359" height="36" alt="Image download support must be enabled"> 57 58 <!-- 59 The image says: 60 Test passes if there is a blue square in the 61 <strong>upper-right corner</strong> of the page. 62 -->