Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: LayoutTests/animations/interpolation/transform-origin-interpolation.html

Issue 1265873002: Add test coverage for interpolations using CSS wide keywords and neutral keyframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/animations/interpolation/transform-origin-interpolation.html
diff --git a/LayoutTests/animations/interpolation/transform-origin-interpolation.html b/LayoutTests/animations/interpolation/transform-origin-interpolation.html
index 711b2d503a27675c65e9cc4ae1b1b38e61668ca7..202f29de64819298b6e248bc5e93fa0e61ddd452 100644
--- a/LayoutTests/animations/interpolation/transform-origin-interpolation.html
+++ b/LayoutTests/animations/interpolation/transform-origin-interpolation.html
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ transform-origin: 30px 10px;
+}
.target {
display: inline-block;
margin-top: 50px;
@@ -9,6 +12,7 @@
height: 50px;
background: red;
transform: scale(1.5);
+ transform-origin: 10px 30px;
}
.expected {
background: green;
@@ -21,6 +25,58 @@
<script>
assertInterpolation({
property: 'transform-origin',
+ from: '',
+ to: '20px 20px',
+}, [
+ {at: -0.3, is: '7px 33px'},
+ {at: 0, is: '10px 30px'},
+ {at: 0.3, is: '13px 27px'},
+ {at: 0.6, is: '16px 24px'},
+ {at: 1, is: '20px 20px'},
+ {at: 1.5, is: '25px 15px'},
+]);
+
+assertInterpolation({
+ property: 'transform-origin',
+ from: 'initial',
+ to: '20px 20px',
+}, [
+ {at: -0.3, is: '26.5px 26.5px'},
+ {at: 0, is: '25px 25px'},
+ {at: 0.3, is: '23.5px 23.5px'},
+ {at: 0.6, is: '22px 22px'},
+ {at: 1, is: '20px 20px'},
+ {at: 1.5, is: '17.5px 17.5px'},
+]);
+
+assertInterpolation({
+ property: 'transform-origin',
+ from: 'inherit',
+ to: '20px 20px',
+}, [
+ {at: -0.3, is: '33px 7px'},
+ {at: 0, is: '30px 10px'},
+ {at: 0.3, is: '27px 13px'},
+ {at: 0.6, is: '24px 16px'},
+ {at: 1, is: '20px 20px'},
+ {at: 1.5, is: '15px 25px'},
+]);
+
+assertInterpolation({
+ property: 'transform-origin',
+ from: 'unset',
+ to: '20px 20px',
+}, [
+ {at: -0.3, is: '26.5px 26.5px'},
+ {at: 0, is: '25px 25px'},
+ {at: 0.3, is: '23.5px 23.5px'},
+ {at: 0.6, is: '22px 22px'},
+ {at: 1, is: '20px 20px'},
+ {at: 1.5, is: '17.5px 17.5px'},
+]);
+
+assertInterpolation({
+ property: 'transform-origin',
from: 'top left',
to: 'bottom right',
}, [

Powered by Google App Engine
This is Rietveld 408576698