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

Unified Diff: polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/perspective-origin-interpolation.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 12 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: polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/perspective-origin-interpolation.html
diff --git a/polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/perspective-origin-interpolation.html b/polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/perspective-origin-interpolation.html
new file mode 100644
index 0000000000000000000000000000000000000000..8eaccfbd7f6e99d0d73768e038eb83e0b7a2b96d
--- /dev/null
+++ b/polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/perspective-origin-interpolation.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style>
+.target {
+ display: inline-block;
+ -webkit-perspective: 50;
+ perspective: 50;
+ margin-top: 50px;
+ margin-bottom: 25px;
+}
+.transformed {
+ width: 50px;
+ height: 50px;
+ background: black;
+ transform: rotateY(45deg);
+}
+.replica .transformed {
+ background: green;
+}
+.replica {
+ position: relative;
+ left: -50px;
+ opacity: 0.75;
+}
+</style>
+<body>
+<template id="target-template">
+<div><div class="transformed"></div></div>
+</template>
+<script src="../testharness/testharness.js"></script>
+<script src="../testharness/testharnessreport.js"></script>
+<script src="resources/interpolation-test.js"></script>
+<script>
+assertInterpolation({
+ property: 'perspective-origin',
+ prefixedProperty: ['-webkit-perspective-origin'],
+ from: '0% 50%',
+ to: '100% 150%'
+}, [
+ {at: -0.3, is: '-30% 20%'},
+ {at: 0, is: '0% 50%'},
+ {at: 0.3, is: '30% 80%'},
+ {at: 0.6, is: '60% 110%'},
+ {at: 1, is: '100% 150%'},
+ {at: 1.5, is: '150% 200%'}
+]);
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698