22 lines
685 B
HTML
22 lines
685 B
HTML
<!doctype HTML>
|
|
<html>
|
|
<meta charset="utf8">
|
|
<title>CSS Content Visibility: hidden container in an iframe</title>
|
|
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
|
|
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
|
|
<link rel="match" href="content-visibility-004-ref.html">
|
|
<meta name="assert" content="content-visibility hidden makes iframe contents hidden">
|
|
|
|
<p>Test passes if the word “Fail” does not appear in the box below.</p>
|
|
|
|
<iframe id="frame" srcdoc='
|
|
<style>
|
|
#container {
|
|
width: 100px;
|
|
height: 100px;
|
|
content-visibility: hidden;
|
|
}
|
|
</style>
|
|
<div id="container">Fail</div>
|
|
'></iframe>
|
|
</html>
|