mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Update web-platform-tests to revision 0abb411331f86f472103183c7ec1136ea21a7e1b
This commit is contained in:
parent
d671010e46
commit
5a5512f805
139 changed files with 2559 additions and 1445 deletions
|
@ -1,33 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS basic box model: parsing min-height with invalid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-3/#propdef-min-height">
|
||||
<meta name="assert" content="min-height supports only the grammar '[ [<length> | <percentage>] && [border-box | content-box]? ] | available | min-content | max-content | fit-content'.">
|
||||
<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("min-height", "complex");
|
||||
test_invalid_value("min-height", "none");
|
||||
test_invalid_value("min-height", "none available");
|
||||
test_invalid_value("min-height", "max-content 10px");
|
||||
test_invalid_value("min-height", "20% available");
|
||||
|
||||
test_invalid_value("min-height", "-10px");
|
||||
test_invalid_value("min-height", "-20%");
|
||||
test_invalid_value("min-height", "60");
|
||||
test_invalid_value("min-height", "10px 20%");
|
||||
test_invalid_value("min-height", "content-box border-box");
|
||||
test_invalid_value("min-height", "10px border-box 20%");
|
||||
test_invalid_value("min-height", "content-box 20% border-box");
|
||||
|
||||
// The following is not yet rejected by browsers:
|
||||
test_invalid_value("min-height", "auto");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,29 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS basic box model: parsing min-height with valid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-3/#propdef-min-height">
|
||||
<meta name="assert" content="min-height supports the full grammar '[ [<length> | <percentage>] && [border-box | content-box]? ] | available | min-content | max-content | fit-content'.">
|
||||
<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("min-height", "10px");
|
||||
test_valid_value("min-height", "20%");
|
||||
test_valid_value("min-height", "calc(2em + 3ex)");
|
||||
|
||||
test_valid_value("min-height", "min-content");
|
||||
test_valid_value("min-height", "max-content");
|
||||
test_valid_value("min-height", "fit-content");
|
||||
|
||||
// The following are not yet supported by browsers:
|
||||
// test_valid_value("min-height", "available");
|
||||
// test_valid_value("min-height", "10px border-box");
|
||||
// test_valid_value("min-height", "content-box 20%", "20% content-box");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,33 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS basic box model: parsing min-width with invalid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-3/#propdef-min-width">
|
||||
<meta name="assert" content="min-width supports only the grammar '[ [<length> | <percentage>] && [border-box | content-box]? ] | available | min-content | max-content | fit-content'.">
|
||||
<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("min-width", "complex");
|
||||
test_invalid_value("min-width", "none");
|
||||
test_invalid_value("min-width", "none available");
|
||||
test_invalid_value("min-width", "max-content 10px");
|
||||
test_invalid_value("min-width", "20% available");
|
||||
|
||||
test_invalid_value("min-width", "-10px");
|
||||
test_invalid_value("min-width", "-20%");
|
||||
test_invalid_value("min-width", "60");
|
||||
test_invalid_value("min-width", "10px 20%");
|
||||
test_invalid_value("min-width", "content-box border-box");
|
||||
test_invalid_value("min-width", "10px border-box 20%");
|
||||
test_invalid_value("min-width", "content-box 20% border-box");
|
||||
|
||||
// The following is not yet rejected by browsers:
|
||||
test_invalid_value("min-width", "auto");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,29 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS basic box model: parsing min-width with valid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-3/#propdef-min-width">
|
||||
<meta name="assert" content="min-width supports the full grammar '[ [<length> | <percentage>] && [border-box | content-box]? ] | available | min-content | max-content | fit-content'.">
|
||||
<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("min-width", "10px");
|
||||
test_valid_value("min-width", "20%");
|
||||
test_valid_value("min-width", "calc(2em + 3ex)");
|
||||
|
||||
test_valid_value("min-width", "min-content");
|
||||
test_valid_value("min-width", "max-content");
|
||||
test_valid_value("min-width", "fit-content");
|
||||
|
||||
// The following are not yet supported by browsers:
|
||||
// test_valid_value("min-width", "available");
|
||||
// test_valid_value("min-width", "10px border-box");
|
||||
// test_valid_value("min-width", "content-box 20%", "20% content-box");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue