offset-rotate-computed.html (1016B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Motion Path Module Level 1: getComputedStyle().offsetRotate</title> 6 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org"> 7 <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-rotate-property"> 8 <meta name="assert" content="offset-rotate reverse is auto 180deg."> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 <script src="/css/support/computed-testcommon.js"></script> 12 </head> 13 <body> 14 <div id="target"></div> 15 <script> 16 // https://github.com/w3c/fxtf-drafts/issues/340 17 test_computed_value("offset-rotate", "auto", ["auto 0deg", "auto"]); 18 test_computed_value("offset-rotate", "reverse", "auto 180deg"); 19 test_computed_value("offset-rotate", "calc(90deg - 0.5turn - 300grad + 0rad)", "-360deg"); 20 test_computed_value("offset-rotate", "auto 5turn", "auto 1800deg"); 21 test_computed_value("offset-rotate", "reverse -50grad", "auto 135deg"); 22 </script> 23 </body> 24 </html>