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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/motion-path/offset-rotate.html

Issue 2555543002: CSS Motion Path: Support offset-rotate in addition to offset-rotation (Closed)
Patch Set: reformat 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
6 </head>
7 <body>
8 <div id="div1"></div>
9 <div id="div2" style="offset-rotate: auto"></div>
10 <div id="div3" style="offset-rotate: reverse"></div>
11 <div id="div4" style="offset-rotate: 180deg"></div>
12 <div id="div5" style="offset-rotate: 0rad"></div>
13 <div id="div6" style="offset-rotate: -400grad auto"></div>
14 <div id="div7" style="offset-rotate: 2turn reverse"></div>
15 <div id="div8" style="offset-rotate: reverse 30deg">
16 <div id="div9" style="offset-rotate: inherit"></div>
17 <div id="div10"></div>
18 </div>
19 <span id="span1" style="offset-rotate: auto -45deg"></span>
20
21 <script>
22 "use strict";
23
24 test(function() {
25 assert_equals(getComputedStyle(div1, null).offsetRotate, 'auto 0deg');
26 }, 'offset-rotate default is auto');
27
28 test(function() {
29 assert_equals(getComputedStyle(div2, null).offsetRotate, 'auto 0deg');
30 }, 'offset-rotate auto expands to auto 0deg');
31
32 test(function() {
33 assert_equals(getComputedStyle(div3, null).offsetRotate, 'auto 180deg');
34 }, 'offset-rotate reverse expands to auto 180deg');
35
36 test(function() {
37 assert_equals(getComputedStyle(div4, null).offsetRotate, '180deg');
38 }, 'offset-rotate can be a fixed angle');
39
40 test(function() {
41 assert_equals(getComputedStyle(div5, null).offsetRotate, '0deg');
42 }, 'offset-rotate angles are converted to degrees');
43
44 test(function() {
45 assert_equals(getComputedStyle(div6, null).offsetRotate, 'auto -360deg');
46 }, 'offset-rotate can be supplied with angle before auto');
47
48 test(function() {
49 assert_equals(getComputedStyle(div7, null).offsetRotate, 'auto 900deg');
50 }, 'offset-rotate can be supplied with angle before reverse');
51
52 test(function() {
53 assert_equals(getComputedStyle(div8, null).offsetRotate, 'auto 210deg');
54 }, 'offset-rotate is unaffected by child elements');
55
56 test(function() {
57 assert_equals(getComputedStyle(div9, null).offsetRotate, 'auto 210deg');
58 }, 'offset-rotate can be explicitly inherited');
59
60 test(function() {
61 assert_equals(getComputedStyle(div10, null).offsetRotate, 'auto 0deg');
62 }, 'offset-rotate is not inherited by default');
63
64 test(function() {
65 assert_equals(span1.style.offsetRotate, 'auto -45deg');
66 }, 'offset-rotate style can be set inline');
67
68 </script>
69 </body>
70 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698