contain-layout-button-002.tentative.html (631B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-layout"> 3 <link rel="help" href="https://github.com/web-platform-tests/wpt/issues/45889"> 4 <link rel="match" href="reference/contain-layout-button-002-ref.html"> 5 <meta name=assert content="An empty button and a button with layout containment should align the same."> 6 <style> 7 button { 8 border: 5px solid green; 9 padding: 10px; 10 margin-bottom: 2px; 11 color: transparent; 12 width: 20px; 13 height: 20px; 14 } 15 </style> 16 17 <p>This test passes if it has the same output as the reference.</p> 18 <button></button> <button style="contain:layout"></button>