contain-strict-001.html (843B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Containment Test: 'contain: strict' and table caption</title> 6 7 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 8 <link rel="help" href="https://www.w3.org/TR/css-contain-1/#contain-property"> 9 <link rel="match" href="reference/contain-paint-size-001-ref.html"> 10 11 12 <style> 13 table 14 { 15 table-layout: fixed; 16 width: 206px; 17 } 18 19 caption 20 { 21 background-color: red; 22 border: green solid 1em; 23 color: red; 24 contain: strict; 25 font-size: 20px; 26 } 27 </style> 28 29 <p>Test passes if there is a short horizontal green stripe and <strong>no red</strong>. 30 31 <table> 32 33 <caption>FAIL FAIL FAIL FAIL FAIL FAIL</caption> 34 35 <tr><td> <td> 36 37 <tr><td> <td> 38 39 </table>