ttwf-reftest-alignContent.html (1036B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>ttwf-reftest-alignContent-ref</title> 5 <link rel="author" title="Heechang Kang" href="mailto:hckang80@gmail.com"> 6 <link rel="help" href="http://www.w3.org/TR/css3-align/#content-distribution"> 7 <style type="text/css"> 8 #main{ 9 display:flex; 10 flex-flow:row wrap; 11 align-content:space-around; 12 position:relative; 13 width:70px; 14 height:170px; 15 border:1px solid #c3c3c3; 16 } 17 #main .sample{ 18 position:absolute; 19 left:0; 20 top:50%; 21 z-index:-1; 22 margin:-35px 0 0; 23 } 24 #main > span{ 25 display:inline-block; 26 width:70px; 27 height:70px; 28 vertical-align:middle; 29 } 30 </style> 31 </head> 32 <body> 33 <p>PASS if there is no red box.</p> 34 <div id="main"> 35 <span class="sample" style="background-color:red;"></span> 36 <span style="background-color:green;"></span> 37 </div> 38 </body> 39 </html>