Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Containment Test: 'contain: size' applies to block box (basic)</title>
<link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="match" href="reference/contain-size-062-ref.html">
<style>
div
{
border: orange solid 3px;
color: blue;
contain: size;
font-size: 32px;
width: 400px;
}
</style>
<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.
<div>Text sample</div>