зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1503684
[wpt PR 13820] - [motion] offset-rotate computed value, a=testonly
Automatic update from web-platform-tests[motion] offset-rotate computed value (#13820) https://drafts.fxtf.org/motion-1/#offset-rotate-property reverse is the same as specifying auto 180deg. https://drafts.csswg.org/css-values-4/#angles All <angle> units are compatible, and deg is their canonical unit. -- wpt-commits: 1f47e938596d832a43bdf4aa26a22eb9a2787bda wpt-pr: 13820
This commit is contained in:
Родитель
1c4189f1dc
Коммит
8901391e29
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Motion Path Module Level 1: getComputedValue().offsetRotate</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-rotate-property">
|
||||
<meta name="assert" content="offset-rotate reverse is auto 180deg.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("offset-rotate", "auto", "auto 0deg");
|
||||
test_computed_value("offset-rotate", "reverse", "auto 180deg");
|
||||
test_computed_value("offset-rotate", "calc(90deg - 0.5turn - 300grad + 0rad)", "-360deg");
|
||||
test_computed_value("offset-rotate", "auto 5turn", "auto 1800deg");
|
||||
test_computed_value("offset-rotate", "reverse -50grad", "auto 135deg");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче