26 lines
696 B
HTML
26 lines
696 B
HTML
<!DOCTYPE html>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>CSS Containment Test: 'contain: strict' and block box</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/#contain-property">
|
|
<link rel="match" href="reference/contain-paint-size-001-ref.html">
|
|
|
|
|
|
<style>
|
|
div
|
|
{
|
|
background-color: red;
|
|
border: green solid 1em;
|
|
color: red;
|
|
contain: strict;
|
|
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>
|