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

Unified Diff: polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/font-size-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/font-size-interpolation.html
diff --git a/polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/font-size-interpolation.html b/polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/font-size-interpolation.html
new file mode 100644
index 0000000000000000000000000000000000000000..b2aeeb3201d367d87fdae6c0d48d46414845d553
--- /dev/null
+++ b/polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/font-size-interpolation.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style>
+.container {
+ font-size: 10px;
+}
+.target {
+ display: inline-block;
+ font: 100px sans-serif;
+}
+.replica {
+ color: green;
+ margin-right: 30px;
+}
+</style>
+<body>
+<template id="target-template">
+ <span class="container">
+ <div class="target">TT</div>
+ </span>
+</template>
+<script src="../testharness/testharness.js"></script>
+<script src="../testharness/testharnessreport.js"></script>
+<script src="resources/interpolation-test.js"></script>
+<script>
+assertInterpolation({
+ property: 'font-size',
+ from: '4px',
+ to: '14px'
+}, [
+ {at: -2, is: '0px'}, // CSS font-size can't be negative.
+ {at: -0.3, is: '1px'},
+ {at: 0, is: '4px'},
+ {at: 0.3, is: '7px'},
+ {at: 0.6, is: '10px'},
+ {at: 1, is: '14px'},
+ {at: 1.5, is: '19px'},
+]);
+
+// The minifill does not support inherit.
+// assertInterpolation({
+// property: 'font-size',
+// from: 'inherit',
+// to: '20px'
+// }, [
+// {at: -2, is: '0px'}, // CSS font-size can't be negative.
+// {at: -0.3, is: '7px'},
+// {at: 0, is: '10px'},
+// {at: 0.3, is: '13px'},
+// {at: 0.6, is: '16px'},
+// {at: 1, is: '20px'},
+// {at: 1.5, is: '25px'},
+// ]);
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698