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

Side by Side 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 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <div id="target" style="width: 100px; height: 200px; display: inline-block"></di v> 4 <div id="target" style="width: 100px; height: 200px; display: inline-block"></di v>
5 <script src="resources/parsing-test-helper.js"></script> 5 <script src="resources/parsing-test-helper.js"></script>
6 <script> 6 <script>
7 expect = expect.bind(this, 'rotate', 'rotate'); 7 expect = expect.bind(this, 'rotate', 'rotate');
8 8
9 expect('initial').parsesAs('initial').isComputedTo('0deg'); 9 expect('initial').parsesAs('initial').isComputedTo('0deg');
10 expect('inherit').parsesAs('inherit'); 10 expect('inherit').parsesAs('inherit');
11 11
12 expect('10deg').parsesAs('10deg').isComputedTo('10deg'); 12 expect('10deg').parsesAs('10deg').isComputedTo('10deg');
13 expect('10deg 0 0 1').parsesAs('10deg 0 0 1').isComputedTo('10deg'); 13 expect('0 0 1 10deg').parsesAs('0 0 1 10deg').isComputedTo('10deg');
14 expect('10deg -1.5 2 3').parsesAs('10deg -1.5 2 3').isComputedTo('10deg -1.5 2 3 '); 14 expect('-1.5 2 3 10deg').parsesAs('-1.5 2 3 10deg').isComputedTo('-1.5 2 3 10deg ');
15 15
16 expect('200grad').parsesAs('200grad').isComputedTo('180deg'); 16 expect('200grad').parsesAs('200grad').isComputedTo('180deg');
17 expect('1rad').parsesAs('1rad').isComputedTo('57.2958deg'); 17 expect('1rad').parsesAs('1rad').isComputedTo('57.2958deg');
18 expect('0.25turn 0 2 0').parsesAs('0.25turn 0 2 0').isComputedTo('90deg 0 2 0'); 18 expect('0 2 0 0.25turn').parsesAs('0 2 0 0.25turn').isComputedTo('0 2 0 90deg');
19 19
20 expect('calc(1turn - 270deg)').parsesAs('calc(90deg)').isComputedTo('90deg'); 20 expect('calc(1turn - 270deg)').parsesAs('calc(90deg)').isComputedTo('90deg');
21 expect('calc(1turn - 270deg + 400grad) 0 calc(0.5 + 0.5) 1').parsesAs('calc(450d eg) 0 1 1').isComputedTo('450deg 0 1 1'); 21 expect('0 calc(0.5 + 0.5) 1 calc(1turn - 270deg + 400grad)').parsesAs('0 1 1 cal c(450deg)').isComputedTo('0 1 1 450deg');
22 22
23 expect('2').isInvalid(); 23 expect('2').isInvalid();
24 expect('none').isInvalid(); 24 expect('none').isInvalid();
25 expect('2deg 1').isInvalid(); 25 expect('1 2deg').isInvalid();
26 expect('45deg 1 2').isInvalid(); 26 expect('1 2 45deg').isInvalid();
27 expect('45deg 1 2 3 4').isInvalid(); 27 expect('1 2 3 4 45deg').isInvalid();
28 expect('1 2 3 45deg').isInvalid(); 28 expect('45deg 1 2 3').isInvalid();
29 expect('10%').isInvalid(); 29 expect('10%').isInvalid();
30 expect('10% 0 0 1').isInvalid(); 30 expect('0 0 1 10%').isInvalid();
31 expect('calc(1 + 2)').isInvalid(); 31 expect('calc(1 + 2)').isInvalid();
32 expect('20deg calc(20deg) 0 0').isInvalid() 32 expect('calc(20deg) 0 0 20deg').isInvalid()
33 </script> 33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698