block-in-inline-align-001.html (823B)
1 <!DOCTYPE html> 2 <meta name="assert" content="Test if `text-align` does not move block-in-inline"> 3 <link rel="match" href="block-in-inline-align-001-ref.html"/> 4 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> 5 <link rel='help' href='https://drafts.csswg.org/css-text-3/#text-align-property'> 6 <link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org" /> 7 <style> 8 section { 9 width: 20ch; 10 } 11 div { 12 width: 10ch; 13 background: orange; 14 } 15 .left { 16 text-align: left; 17 } 18 .right { 19 text-align: right; 20 } 21 </style> 22 <body> 23 <section class="right"> 24 <span> 25 123456789 26 <div>123456789</div> 27 123456789 28 </span> 29 </section> 30 31 <section dir="rtl" class="left"> 32 <span> 33 123456789 34 <div>123456789</div> 35 123456789 36 </span> 37 </section> 38 </body>