blob: 60cb194242894b540aaa50c6990e7cbcb491e27e [file] [log] [blame]
<!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="help" href="https://www.w3.org/TR/css-contain-1/#containment-size">
<link rel="match" href="reference/contain-size-062-ref.html">
<meta name="flags" content="">
<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>