contain-paint-047.html (852B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Containment Test: 'contain: paint' and clipping at padding edge</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-paint"> 9 <link rel="match" href="reference/contain-paint-047-ref.html"> 10 11 <meta content="This test checks that an element with 'contain: paint' that has its content overflowing will clip at padding edge." name="assert"> 12 13 14 <style> 15 div 16 { 17 color: green; 18 contain: paint; 19 font-family: monospace; 20 font-size: 100px; 21 width: 4ch; 22 } 23 24 span 25 { 26 background-color: red; 27 color: yellow; 28 } 29 </style> 30 31 <p>Test passes if there is <strong>no red</strong>. 32 33 <div>PASS<span>FAIL</span></div>