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