mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision 81962ac8802223d038b188b6f9cb88a0a9c5beee
This commit is contained in:
parent
fe1a057bd1
commit
24183668c4
1960 changed files with 29853 additions and 10555 deletions
|
@ -3,11 +3,12 @@
|
|||
<head>
|
||||
<title>JS test: Rotate via javascript must show the correct computed rotation</title>
|
||||
<link rel="author" title="Rick Hurst" href="http://mrkn.co/axegs">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-1/#serialization-of-the-computed-value">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-1/#serialization-of-transform-functions">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<meta name="flags" content="svg">
|
||||
<meta name="assert" content="Asserting that you can rotate an element with JS and it show up in CSS computed values not as a matrix but as the rotation">
|
||||
<meta name="assert" content="Asserting that you can rotate an element with JS and it show up in CSS computed values as a matrix">
|
||||
<style>
|
||||
#box{
|
||||
margin-top:30px;
|
||||
|
@ -26,8 +27,9 @@
|
|||
test(function() {
|
||||
var box = document.getElementById("box");
|
||||
box.style.transform = "rotate(30deg)";
|
||||
assert_equals(box.style.transform, "rotate(30deg)");
|
||||
assert_equals(window.getComputedStyle(box).getPropertyValue("transform"),
|
||||
"rotate(30deg)");
|
||||
"matrix(0.866025, 0.5, -0.5, 0.866025, 0, 0)");
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue