mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 345300fad3945a5f1441fb2b2001109ca48f36e8
This commit is contained in:
parent
71ba247942
commit
05db47be0f
109 changed files with 2576 additions and 1228 deletions
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Overscroll Behavior: getComputedValue().overscrollBehavior*</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-overscroll-behavior/#overscroll-behavior-properties">
|
||||
<meta name="assert" content="overscroll-behavior-x computed value is as specified.">
|
||||
<meta name="assert" content="overscroll-behavior-y computed value is as specified.">
|
||||
<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>
|
||||
<script>
|
||||
'use strict';
|
||||
for (let property of ["overscroll-behavior-x", "overscroll-behavior-y"]) {
|
||||
test_computed_value(property, "contain");
|
||||
test_computed_value(property, "none");
|
||||
test_computed_value(property, "auto");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Overscroll Behavior: parsing overscroll-behavior with invalid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-overscroll-behavior/#propdef-overscroll-behavior">
|
||||
<meta name="assert" content="overscroll-behavior supports only the grammar '[ contain | none | auto ]{1,2}'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
'use strict';
|
||||
test_invalid_value("overscroll-behavior", "normal");
|
||||
test_invalid_value("overscroll-behavior", "0");
|
||||
test_invalid_value("overscroll-behavior", "contain contain contain");
|
||||
|
||||
|
||||
for (let property of ["overscroll-behavior-x", "overscroll-behavior-y"]) {
|
||||
test_invalid_value(property, "normal");
|
||||
test_invalid_value(property, "0");
|
||||
test_invalid_value(property, "contain contain");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Overscroll Behavior: parsing overscroll-behavior with valid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-overscroll-behavior/#propdef-overscroll-behavior">
|
||||
<meta name="assert" content="overscroll-behavior supports the full grammar '[ contain | none | auto ]{1,2}'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
'use strict';
|
||||
test_valid_value("overscroll-behavior", "contain");
|
||||
test_valid_value("overscroll-behavior", "none");
|
||||
test_valid_value("overscroll-behavior", "auto");
|
||||
|
||||
test_valid_value("overscroll-behavior", "contain none");
|
||||
test_valid_value("overscroll-behavior", "none auto");
|
||||
test_valid_value("overscroll-behavior", "auto contain");
|
||||
|
||||
test_valid_value("overscroll-behavior", "contain contain", "contain");
|
||||
test_valid_value("overscroll-behavior", "none none", "none");
|
||||
test_valid_value("overscroll-behavior", "auto auto", "auto");
|
||||
|
||||
|
||||
for (let property of ["overscroll-behavior-x", "overscroll-behavior-y"]) {
|
||||
test_valid_value(property, "contain");
|
||||
test_valid_value(property, "none");
|
||||
test_valid_value(property, "auto");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue