aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-invalid.html
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-01-18 00:08:43 -0500
committerGitHub <noreply@github.com>2019-01-18 00:08:43 -0500
commit81ab255b70cd5cc2a3ef6f27414c3655ed26a82f (patch)
treea98f39fd5a0c36582322962e0ca8383dca7a5430 /tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-invalid.html
parent42b600458fe2e40c2db7f7933c006515fd06f85a (diff)
parent02c1eed9991623cfc2e282149ff2912c7092406b (diff)
downloadservo-81ab255b70cd5cc2a3ef6f27414c3655ed26a82f.tar.gz
servo-81ab255b70cd5cc2a3ef6f27414c3655ed26a82f.zip
Auto merge of #22722 - servo-wpt-sync:wpt_update_17-01-2019, r=jdm
Sync WPT with upstream (17-01-2019) Automated downstream sync of changes from upstream as of 17-01-2019. [no-wpt-sync] <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22722) <!-- Reviewable:end -->
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-invalid.html')
-rw-r--r--tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-invalid.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-invalid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-invalid.html
new file mode 100644
index 00000000000..85fe77fdb7a
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-invalid.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Overflow: parsing max-lines with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-overflow/#propdef-max-lines">
+<meta name="assert" content="max-lines supports only the grammar 'none | <integer>'.">
+<meta name="assert" content="Zero or negative integers are invalid.">
+<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("max-lines", 'auto');
+test_invalid_value("max-lines", '0');
+test_invalid_value("max-lines", '-5');
+
+test_invalid_value("max-lines", 'none none');
+test_invalid_value("max-lines", '1 none');
+test_invalid_value("max-lines", 'none 2');
+test_invalid_value("max-lines", '3 4');
+</script>
+</body>
+</html>