flexbox-writing-mode-012.html (2590B)
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 with 'direction' flipped. 12 </title> 13 <meta charset="utf-8"> 14 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 15 <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#flex-direction-property"> 16 <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode"> 17 <link rel="match" href="flexbox-writing-mode-012-ref.html"> 18 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 19 <style> 20 .container { 21 display: flex; 22 flex-direction: row; 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 .vl { writing-mode: vertical-lr; direction: ltr; } 45 .vr { writing-mode: vertical-rl; direction: ltr; } 46 .vl_rtl { writing-mode: vertical-lr; direction: rtl; } 47 .vr_rtl { writing-mode: vertical-rl; direction: rtl; } 48 </style> 49 </head> 50 <body> 51 52 <div class="container vl_rtl"> 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="vl small">p b c</span> 58 <span class="vl big">p e</span> 59 </div> 60 <div class="container vl_rtl"> 61 <span class="vr small">p b c</span> 62 <span class="vr big">p e</span> 63 <span class="vl_rtl small">p b c</span> 64 <span class="vl_rtl big">p e</span> 65 <span class="vr_rtl small">p b c</span> 66 <span class="vr_rtl big">p e</span> 67 </div> 68 <div class="container vr_rtl"> 69 <span class="hl small">p b c</span> 70 <span class="hl big">p e</span> 71 <span class="hr small">p b c</span> 72 <span class="hr big">p e</span> 73 <span class="vl small">p b c</span> 74 <span class="vl big">p e</span> 75 </div> 76 <div class="container vr_rtl"> 77 <span class="vr small">p b c</span> 78 <span class="vr big">p e</span> 79 <span class="vl_rtl small">p b c</span> 80 <span class="vl_rtl big">p e</span> 81 <span class="vr_rtl small">p b c</span> 82 <span class="vr_rtl big">p e</span> 83 </div> 84 85 </body> 86 </html>