contain-size-062.html (753B)
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-062-ref.html"> 10 11 12 <style> 13 div 14 { 15 border: orange solid 3px; 16 color: blue; 17 contain: size; 18 font-size: 32px; 19 width: 400px; 20 } 21 </style> 22 23 <p>Test passes if the words "Text sample" are below a thick orange line. Test fails if, instead of a thick orange line, there is an orange rectangle with the words "Text sample" in it. 24 25 <div>Text sample</div>