contain-size-061.html (558B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Containment Test: 'contain: size' applies to block box (basic)</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/#containment-size"> 9 <link rel="match" href="reference/contain-size-061-ref.html"> 10 11 12 <style> 13 div 14 { 15 contain: size; 16 font-size: 100px; 17 overflow: hidden; 18 } 19 </style> 20 21 <p>Test passes if the word FAIL is absent. 22 23 <div>FAIL</div>