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

Unified Diff: third_party/WebKit/LayoutTests/transforms/rotate-parsing.html

Issue 2531753002: CSS Independent Transform Properties: support rotate: <axes> <angle> (Closed)
Patch Set: tests Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/transforms/rotate-parsing.html
diff --git a/third_party/WebKit/LayoutTests/transforms/rotate-parsing.html b/third_party/WebKit/LayoutTests/transforms/rotate-parsing.html
index 868b97c10025bf9041eaba8ebddb4678b1fe15d5..eb8a7d8f134309c90414a6911d0eac60393d171a 100644
--- a/third_party/WebKit/LayoutTests/transforms/rotate-parsing.html
+++ b/third_party/WebKit/LayoutTests/transforms/rotate-parsing.html
@@ -10,24 +10,24 @@ expect('initial').parsesAs('initial').isComputedTo('0deg');
expect('inherit').parsesAs('inherit');
expect('10deg').parsesAs('10deg').isComputedTo('10deg');
-expect('10deg 0 0 1').parsesAs('10deg 0 0 1').isComputedTo('10deg');
-expect('10deg -1.5 2 3').parsesAs('10deg -1.5 2 3').isComputedTo('10deg -1.5 2 3');
+expect('0 0 1 10deg').parsesAs('0 0 1 10deg').isComputedTo('10deg');
+expect('-1.5 2 3 10deg').parsesAs('-1.5 2 3 10deg').isComputedTo('-1.5 2 3 10deg');
expect('200grad').parsesAs('200grad').isComputedTo('180deg');
expect('1rad').parsesAs('1rad').isComputedTo('57.2958deg');
-expect('0.25turn 0 2 0').parsesAs('0.25turn 0 2 0').isComputedTo('90deg 0 2 0');
+expect('0 2 0 0.25turn').parsesAs('0 2 0 0.25turn').isComputedTo('0 2 0 90deg');
expect('calc(1turn - 270deg)').parsesAs('calc(90deg)').isComputedTo('90deg');
-expect('calc(1turn - 270deg + 400grad) 0 calc(0.5 + 0.5) 1').parsesAs('calc(450deg) 0 1 1').isComputedTo('450deg 0 1 1');
+expect('0 calc(0.5 + 0.5) 1 calc(1turn - 270deg + 400grad)').parsesAs('0 1 1 calc(450deg)').isComputedTo('0 1 1 450deg');
expect('2').isInvalid();
expect('none').isInvalid();
-expect('2deg 1').isInvalid();
-expect('45deg 1 2').isInvalid();
-expect('45deg 1 2 3 4').isInvalid();
-expect('1 2 3 45deg').isInvalid();
+expect('1 2deg').isInvalid();
+expect('1 2 45deg').isInvalid();
+expect('1 2 3 4 45deg').isInvalid();
+expect('45deg 1 2 3').isInvalid();
expect('10%').isInvalid();
-expect('10% 0 0 1').isInvalid();
+expect('0 0 1 10%').isInvalid();
expect('calc(1 + 2)').isInvalid();
-expect('20deg calc(20deg) 0 0').isInvalid()
+expect('calc(20deg) 0 0 20deg').isInvalid()
</script>

Powered by Google App Engine
This is Rietveld 408576698