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

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

Issue 993013002: Perspective property should only allow positive lengths (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 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/webkit-perspective-parsing.html
diff --git a/LayoutTests/transforms/perspective-parsing.html b/LayoutTests/transforms/webkit-perspective-parsing.html
similarity index 56%
copy from LayoutTests/transforms/perspective-parsing.html
copy to LayoutTests/transforms/webkit-perspective-parsing.html
index 221a8a985a40f6337553006f8ac21b3134d3b066..6dbf94e81a6b645a208da2c2d918119968d466b4 100644
--- a/LayoutTests/transforms/perspective-parsing.html
+++ b/LayoutTests/transforms/webkit-perspective-parsing.html
@@ -4,7 +4,7 @@
<div id="target"></div>
<script src="resources/parsing-test-helper.js"></script>
<script>
-expect = expect.bind(this, 'perspective', 'perspective');
+expect = expect.bind(this, '-webkit-perspective', 'webkitPerspective');
expect('initial').parsesAs('initial').isComputedTo('none');
expect('inherit').parsesAs('inherit');
@@ -14,7 +14,14 @@ expect('1px').parsesAs('1px').isComputedTo('1px');
expect('0').isInvalid();
expect('0px').isInvalid();
-expect('5').isInvalid();
+expect('5').parsesAs('5');
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)').parsesAs('calc(-1)');
+expect('calc(0)').parsesAs('calc(0)');
+expect('calc(1)').parsesAs('calc(1)');
+expect('calc(10em - 10px)').parsesAs('calc(10em - 10px)');
</script>
« no previous file with comments | « LayoutTests/transforms/perspective-parsing-expected.txt ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698