chromium/third_party/blink/web_tests/transforms/webkit-perspective-parsing.html

<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<div id="target"></div>
<script src="resources/parsing-test-helper.js"></script>
<script>
expect = expect.bind(this, '-webkit-perspective', 'webkitPerspective');

expect('initial').parsesAs('initial').isComputedTo('none');
expect('inherit').parsesAs('inherit');

expect('none').parsesAs('none').isComputedTo('none');
expect('1px').parsesAs('1px').isComputedTo('1px');

expect('0').parsesAs('0px').isComputedTo('0px');
expect('0px').parsesAs('0px').isComputedTo('0px');
expect('5').parsesAs('5px');
expect('-1px').isInvalid();
expect('50%').isInvalid();
expect('calc(-1px)').parsesAs('calc(-1px)');
expect('calc(0px)').parsesAs('calc(0px)');
expect('calc(1px)').parsesAs('calc(1px)');
expect('calc(-1)').isInvalid();
expect('calc(0)').parsesAs('0px');
expect('calc(1)').parsesAs('1px');
expect('calc(10em - 10px)').parsesAs('calc(10em - 10px)');
</script>