diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/content-visibility/parsing')
3 files changed, 65 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/content-visibility/parsing/content-visibility-computed.html b/testing/web-platform/tests/css/css-contain/content-visibility/parsing/content-visibility-computed.html new file mode 100644 index 0000000000..6e08deebea --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/content-visibility/parsing/content-visibility-computed.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Content Visibility: content-visibility with computed values</title> +<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org"> +<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility"> +<meta name="assert" content="content-visibility supports the full grammar 'visible | auto | hidden'."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/computed-testcommon.js"></script> +</head> +<body> +<div id=target></div> +<div id=scratch></div> +<script> + +test_computed_value("content-visibility", "visible"); +test_computed_value("content-visibility", "auto"); +test_computed_value("content-visibility", "hidden"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-contain/content-visibility/parsing/content-visibility-invalid.html b/testing/web-platform/tests/css/css-contain/content-visibility/parsing/content-visibility-invalid.html new file mode 100644 index 0000000000..610e219e1b --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/content-visibility/parsing/content-visibility-invalid.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Content Visibility: content-visibility with invalid values</title> +<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org"> +<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility"> +<meta name="assert" content="content-visibility supports the full grammar 'visible | auto | hidden'."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/parsing-testcommon.js"></script> +</head> +<body> +<script> +test_invalid_value("content-visibility", "visible auto"); +test_invalid_value("content-visibility", "foo-bar"); +test_invalid_value("content-visibility", "foo bar baz"); +test_invalid_value("content-visibility", "hidden visible"); +test_invalid_value("content-visibility", "invisible invisible invisible"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-contain/content-visibility/parsing/content-visibility-valid.html b/testing/web-platform/tests/css/css-contain/content-visibility/parsing/content-visibility-valid.html new file mode 100644 index 0000000000..a0525695de --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/content-visibility/parsing/content-visibility-valid.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Content Visibility Test: content-visibility with valid values</title> +<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org"> +<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility"> +<meta name="assert" content="content-visibility supports the full grammar 'visible | auto | hidden'."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/parsing-testcommon.js"></script> +</head> +<body> +<script> +test_valid_value("content-visibility", "visible"); +test_valid_value("content-visibility", "auto"); +test_valid_value("content-visibility", "hidden"); +</script> +</body> +</html> |