blob: 33783d423b50585c3da0cd37f13df4763774bd38 [file] [log] [blame]
<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Motion Path: offset-rotate</title>
<link rel="help" href="">
<link rel="match" href="offset-rotate-ref.html">
<meta name="assert" content="This tests offset-rotate auto with path()">
#target {
position: absolute;
left: 300px;
top: 100px;
width: 300px;
height: 200px;
background-color: lime;
transform-origin: 0px 0px;
offset-rotate: auto;
function test() {
let target = document.getElementById('target');
// Get a path which has the same direction as "ray(120deg ...)"
let verticalMove = 100 * Math.tan(30 * Math.PI / 180); = `path("m 0 0 l 100 ${verticalMove}")`;
window.requestAnimationFrame(function() {
<body onload='test()'>
<div id="target"></div>