Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-contain/contain-paint-size-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Containment Test: 'contain: paint size' and block box</title>
<link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="match" href="reference/contain-paint-size-001-ref.html">
<style>
div
{
background-color: red;
border: green solid 1em;
color: red;
contain: paint size;
font-size: 20px;
width: 166px;
}
</style>
<p>Test passes if there is a short horizontal green stripe and <strong>no red</strong>.
<div>FAIL FAIL FAIL FAIL FAIL FAIL</div>