Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Unified Diff: LayoutTests/transforms/perspective-parsing.html

Issue 98663004: Add support for unprefixed CSS Transforms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « LayoutTests/transforms/perspective-origin-parsing.html ('k') | LayoutTests/transforms/perspective-parsing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698