2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
4 <div id=
"target"></div>
5 <script src=
"resources/parsing-test-helper.js"></script>
7 expect
= expect
.bind(this, '-webkit-perspective', 'webkitPerspective');
9 expect('initial').parsesAs('initial').isComputedTo('none');
10 expect('inherit').parsesAs('inherit');
12 expect('none').parsesAs('none').isComputedTo('none');
13 expect('1px').parsesAs('1px').isComputedTo('1px');
15 expect('0').isInvalid();
16 expect('0px').isInvalid();
17 expect('5').parsesAs('5px');
18 expect('-1px').isInvalid();
19 expect('50%').isInvalid();
20 expect('calc(-1px)').parsesAs('calc(-1px)');
21 expect('calc(0px)').parsesAs('calc(0px)');
22 expect('calc(1px)').parsesAs('calc(1px)');
23 expect('calc(-1)').isInvalid();
24 expect('calc(0)').isInvalid();
25 expect('calc(1)').parsesAs('1px');
26 expect('calc(10em - 10px)').parsesAs('calc(10em - 10px)');