<!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-061-ref.html"> | |
<style> | |
div | |
{ | |
contain: size; | |
font-size: 100px; | |
overflow: hidden; | |
} | |
</style> | |
<p>Test passes if the word FAIL is absent. | |
<div>FAIL</div> |