blob: 0cda58552d8629e18a478583b4d1c9bff2789171 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ OverscrollBehaviorEnabled=false ] -->
<html>
<head>
<meta charset="utf-8">
<script src="../../resources/js-test.js"></script>
</head>
<body>
<div id="target" style="display: none"></div>
<script>
description("Tests that overscroll-behavior is not exposed when the feature is disabled");
shouldBeFalse("'overscrollBehavior' in document.documentElement.style");
shouldBeFalse("'overscroll-behavior' in getComputedStyle(document.documentElement)");
shouldBeTrue("getComputedStyle(document.getElementById('target')).getPropertyValue('overscroll-behavior') == ''");
shouldBeFalse("CSS.supports('overscroll-behavior: contain')");
shouldBeFalse("CSS.supports('overscroll-behavior: inherit')");
shouldBeFalse("CSS.supports('overscroll-behavior', 'inherit')");
shouldBeFalse("CSS.supports('overscroll-behavior-x: inherit')");
shouldBeFalse("CSS.supports('overscroll-behavior-y: inherit')");
</script>
</body>
</html>