diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-004.html')
-rw-r--r-- | testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-004.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-004.html b/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-004.html new file mode 100644 index 0000000000..7091dd930d --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-004.html @@ -0,0 +1,22 @@ +<!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> |