blob: 67b846eed0b939aee4fbc8087f7ba0f720de8bb2 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ CSSContainmentEnabled=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 contain is not exposed when the feature is disabled");
shouldBeFalse("'contain' in document.documentElement.style");
shouldBeFalse("'contain' in getComputedStyle(document.documentElement)");
shouldBeTrue("getComputedStyle(document.getElementById('target')).getPropertyValue('contain') == ''");
shouldBeFalse("CSS.supports('contain: paint')");
shouldBeFalse("CSS.supports('contain: inherit')");
</script>
</body>
</html>