flexbox_visibility-collapse.html (544B)
1 <!DOCTYPE html> 2 <title>flexbox | visibility: collapse</title> 3 <link rel="author" href="http://opera.com" title="Opera Software"> 4 <link rel="help" 5 href="http://www.w3.org/TR/css-flexbox-1/#visibility-collapse"> 6 <link rel="match" href="flexbox_visibility-collapse-ref.html"> 7 <style> 8 body { 9 margin: 0; 10 } 11 div { 12 background: #3366cc; 13 border: 1px solid black; 14 display: flex; 15 } 16 p { 17 background: #ffcc00; 18 margin: 2em; 19 } 20 #test { 21 background: red; 22 visibility: collapse; 23 } 24 </style> 25 26 <div> 27 <p>filler</p> 28 <p id="test">FAIL</p> 29 <p>filler</p> 30 </div>