flexbox-writing-mode-srl-row-mix.html (2586B)
1 <!DOCTYPE html> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <html> 7 <head> 8 <title> 9 CSS Test: Testing a mix of flex items with various values for 10 'writing-mode' / 'direction' in a vertical row-oriented flex container. 11 </title> 12 <meta charset="utf-8"> 13 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 14 <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#flex-direction-property"> 15 <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode"> 16 <link rel="match" href="flexbox-writing-mode-srl-row-mix-ref.html"> 17 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 18 <style> 19 .container { 20 display: flex; 21 flex-direction: row; 22 align-items: start; 23 float: left; 24 border: 2px solid purple; 25 padding: 2px; 26 margin-bottom: 2em; 27 height: 500px; 28 width: 150px; 29 } 30 31 span { 32 display: block; 33 background: lightgrey; 34 border: 2px solid black; 35 margin: 11px 13px 17px 7px; 36 inline-size: 6px; 37 } 38 39 .small { font: 12px Ahem; } 40 .big { font: 20px Ahem; } 41 42 .hl { writing-mode: horizontal-tb; direction: ltr; } 43 .hr { writing-mode: horizontal-tb; direction: rtl; } 44 .sl { writing-mode: sideways-lr; direction: ltr; } 45 .sr { writing-mode: sideways-rl; direction: ltr; } 46 .sl_rtl { writing-mode: sideways-lr; direction: rtl; } 47 .sr_rtl { writing-mode: sideways-rl; direction: rtl; } 48 </style> 49 </head> 50 <body> 51 52 <div class="container sr"> 53 <span class="hl small">p b c</span> 54 <span class="hl big">p e</span> 55 <span class="hr small">p b c</span> 56 <span class="hr big">p e</span> 57 <span class="sl small">p b c</span> 58 <span class="sl big">p e</span> 59 </div> 60 <div class="container sr"> 61 <span class="sr small">p b c</span> 62 <span class="sr big">p e</span> 63 <span class="sl_rtl small">p b c</span> 64 <span class="sl_rtl big">p e</span> 65 <span class="sr_rtl small">p b c</span> 66 <span class="sr_rtl big">p e</span> 67 </div> 68 69 <div class="container sr_rtl"> 70 <span class="hl small">p b c</span> 71 <span class="hl big">p e</span> 72 <span class="hr small">p b c</span> 73 <span class="hr big">p e</span> 74 <span class="sl small">p b c</span> 75 <span class="sl big">p e</span> 76 </div> 77 <div class="container sr_rtl"> 78 <span class="sr small">p b c</span> 79 <span class="sr big">p e</span> 80 <span class="sl_rtl small">p b c</span> 81 <span class="sl_rtl big">p e</span> 82 <span class="sr_rtl small">p b c</span> 83 <span class="sr_rtl big">p e</span> 84 </div> 85 86 </body> 87 </html>