flexbox_justifycontent-end-rtl.html (913B)
1 <!DOCTYPE html> 2 <title>flexbox | justify-content: end RTL</title> 3 <link rel="author" title="Adam Argyle" href="mailto:argyle@google.com"> 4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#justify-content-property"> 5 <link rel="match" href="flexbox_justifycontent-end-rtl-ref.html"> 6 <style> 7 div { 8 background: blue; 9 margin: 1em 0; 10 border: 1px solid black; 11 height: 6em; 12 width: 40em; 13 14 direction: rtl; 15 display: flex; 16 flex-direction: row-reverse; 17 justify-content: end; 18 } 19 span { 20 background: white; 21 margin: 0 1em; 22 width: 8em; 23 height: 2em; 24 display: inline-grid; 25 place-items: center; 26 27 flex: none; 28 } 29 span:nth-child(1) {background: yellow;} 30 span:nth-child(2) {background: pink;} 31 span:nth-child(3) {background: lightblue;} 32 </style> 33 34 <div> 35 <span>one</span> 36 <span>two</span> 37 <span>three</span> 38 </div> 39 40 <p>Test passes if order is visually 1, 2, 3 and alignment is to the top left</p>