Index: LayoutTests/transforms/perspective-parsing.html |
diff --git a/LayoutTests/transforms/perspective-parsing.html b/LayoutTests/transforms/perspective-parsing.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..221a8a985a40f6337553006f8ac21b3134d3b066 |
--- /dev/null |
+++ b/LayoutTests/transforms/perspective-parsing.html |
@@ -0,0 +1,20 @@ |
+<!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, 'perspective', 'perspective'); |
+ |
+expect('initial').parsesAs('initial').isComputedTo('none'); |
+expect('inherit').parsesAs('inherit'); |
+ |
+expect('none').parsesAs('none').isComputedTo('none'); |
+expect('1px').parsesAs('1px').isComputedTo('1px'); |
+ |
+expect('0').isInvalid(); |
+expect('0px').isInvalid(); |
+expect('5').isInvalid(); |
+expect('-1px').isInvalid(); |
+expect('50%').isInvalid(); |
+</script> |