summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overscroll-behavior/parsing/overscroll-behavior-valid.html
blob: 45d90d485f308a5999929f0edd066ec659bfd63f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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", "overscroll-behavior-inline", "overscroll-behavior-block"]) {
  test_valid_value(property, "contain");
  test_valid_value(property, "none");
  test_valid_value(property, "auto");
}
</script>
</body>
</html>