flexbox_justifycontent-start-rtl-ref.html (862B)
1 <!DOCTYPE html> 2 <title>flexbox | justify-content: start RTL (ref)</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 <style> 6 div { 7 background: blue; 8 margin: 1em 0; 9 border: 1px solid black; 10 height: 6em; 11 width: 40em; 12 13 direction: rtl; 14 display: flex; 15 flex-direction: row-reverse; 16 justify-content: flex-end; 17 } 18 span { 19 background: white; 20 margin: 0 1em; 21 width: 8em; 22 height: 2em; 23 display: inline-grid; 24 place-items: center; 25 26 flex: none; 27 } 28 span:nth-child(1) {background: yellow;} 29 span:nth-child(2) {background: pink;} 30 span:nth-child(3) {background: lightblue;} 31 </style> 32 33 <div> 34 <span>one</span> 35 <span>two</span> 36 <span>three</span> 37 </div> 38 39 <p>Test passes if order is visually 1, 2, 3 and alignment is to the top right</p>