flexbox-align-self-vert-rtl-005.xhtml (2756B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <!-- Testcase for align-items / align-self behavior, with all the possible 7 values included on different items within a flex container, and with 8 margin/border/padding values on each item. --> 9 <html xmlns="http://www.w3.org/1999/xhtml"> 10 <head> 11 <title>CSS Test: Testing the behavior of 'align-self' with a vertical flex container, with margin/padding/border on the items and with 'direction:rtl'</title> 12 <link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com"/> 13 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-property"/> 14 <link rel="match" href="flexbox-align-self-vert-rtl-005-ref.xhtml"/> 15 <style> 16 .flexbox { 17 border: 1px dashed blue; 18 width: 200px; 19 display: flex; 20 flex-direction: column; 21 float: left; 22 font-size: 10px; 23 direction: rtl; 24 } 25 26 .flexbox > div { 27 margin: 1px 2px 3px 4px; 28 border-width: 2px 3px 4px 5px; 29 padding: 3px 4px 5px 6px; 30 31 border-style: dotted; 32 } 33 34 div.big { 35 font-size: 20px; 36 width: 50px; 37 } 38 39 /* Classes for each of the various align-self values */ 40 .flex-start { 41 background: lime; 42 align-self: flex-start; 43 } 44 .flex-end { 45 background: orange; 46 align-self: flex-end; 47 } 48 .center { 49 background: lightblue; 50 align-self: center; 51 } 52 .baseline { 53 background: teal; 54 align-self: baseline; 55 } 56 .stretch { 57 background: pink; 58 align-self: stretch; 59 } 60 .self-start { 61 background: yellow; 62 align-self: self-start; 63 } 64 .self-end { 65 background: purple; 66 align-self: self-end; 67 } 68 </style> 69 </head> 70 <body> 71 <div class="flexbox"> 72 <div class="flex-start">start</div> 73 <div class="flex-start big">a b c d e f</div> 74 <div class="flex-end">end</div> 75 <div class="flex-end big">a b c d e f</div> 76 <div class="center">center</div> 77 <div class="center big">a b c d e f</div> 78 </div> 79 <div class="flexbox"> 80 <div class="baseline">base</div> 81 <div class="baseline big">abc</div> 82 <div class="stretch">stretch</div> 83 <div class="stretch big">a b c d e f</div> 84 </div> 85 <div class="flexbox"> 86 <div class="self-start dirrtl">self-start</div> 87 <div class="self-start dirrtl big">a b c d e f</div> 88 <div class="self-end dirrtl">self-end</div> 89 <div class="self-end dirrtl big nowidth">a b c d e f</div> 90 </div> 91 </body> 92 </html>