21 lines
705 B
HTML
21 lines
705 B
HTML
<!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>
|