mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Update web-platform-tests to revision e2eb25aaa6dd3c512b172588f3400f9c25a410c3
This commit is contained in:
parent
3d4a416c6b
commit
8b66216ed2
484 changed files with 1945 additions and 1089 deletions
|
@ -53,7 +53,7 @@
|
|||
.rotate_2 {
|
||||
left: 450px;
|
||||
transform-origin: 50% 50%;
|
||||
transform: rotate3d(0, 0, 1, 90deg);
|
||||
transform: rotate3d(1, 0, 0, 45deg);
|
||||
}
|
||||
.row_3 {
|
||||
transform: perspective(500px);
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#individual-transforms">
|
||||
<meta name="assert" content="Tests whether individaul transform works correctlyi by compare the rendering result with transfrom functions of the 'transform' property."/>
|
||||
<meta name="assert" content="Tests whether individual transforms work correctly by comparing the rendering result with transform functions of the 'transform' property."/>
|
||||
<link rel="match" href="individual-transform-1-ref.html">
|
||||
<style>
|
||||
div {
|
||||
|
@ -36,7 +36,7 @@
|
|||
.rotate_1 {
|
||||
left: 450px;
|
||||
transform-origin: 50% 50%;
|
||||
/* test 'rota: te<angle>' */
|
||||
/* test 'rotate: <angle>' */
|
||||
rotate: 90deg;
|
||||
}
|
||||
|
||||
|
@ -59,8 +59,8 @@
|
|||
.rotate_2 {
|
||||
left: 450px;
|
||||
transform-origin: 50% 50%;
|
||||
/* test 'rotate: <number>{3}<angle>'*/
|
||||
rotate: 0 0 1 90deg;
|
||||
/* test 'rotate: axis <angle>'*/
|
||||
rotate: x 45deg;
|
||||
}
|
||||
.row_3 {
|
||||
transform: perspective(500px);
|
||||
|
|
|
@ -12,13 +12,19 @@
|
|||
</head>
|
||||
<body>
|
||||
<script>
|
||||
// https://drafts.csswg.org/css-transforms-2/#individual-transform-serialization
|
||||
|
||||
// Serialize as the keyword none if and only if none was originally specified.
|
||||
test_valid_value("rotate", "none");
|
||||
|
||||
// If a 2d rotation is specified, the property must serialize as just an <angle>.
|
||||
test_valid_value("rotate", "0deg");
|
||||
|
||||
// If a 3d rotation is specified, the property must serialize with an axis specified.
|
||||
test_valid_value("rotate", "100 200 300 400grad");
|
||||
test_valid_value("rotate", "400grad 100 200 300", "100 200 300 400grad");
|
||||
|
||||
// If the axis is parallel with the x, y, or z axis, it must serialize as the appropriate keyword.
|
||||
test_valid_value("rotate", "x 400grad");
|
||||
test_valid_value("rotate", "400grad x", "x 400grad");
|
||||
test_valid_value("rotate", "1 0 0 400grad", "x 400grad");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue