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

Unified Diff: LayoutTests/animations/interpolation/font-size-adjust-interpolation.html

Issue 983073002: Make font-size-adjust animatable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/font-size-adjust-interpolation.html
diff --git a/LayoutTests/animations/interpolation/font-size-adjust-interpolation.html b/LayoutTests/animations/interpolation/font-size-adjust-interpolation.html
new file mode 100644
index 0000000000000000000000000000000000000000..3d04078291ca809d07a8144db42fe77f230edb63
--- /dev/null
+++ b/LayoutTests/animations/interpolation/font-size-adjust-interpolation.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<style type="text/css">
+.container {
+ font-size: 20px;
+ line-height: 1;
+}
+
+@font-face {
+ /* LinLibertine_R's aspect value = 0.440918 on mac */
+ font-family : 'referenceFont';
+ src : url('../../third_party/Libertine/LinLibertine_R.woff') format("woff");
+}
+
+@font-face {
+ /* OpenSans-Regular's aspect = 0.544922 on mac */
+ /* OpenSans-Regular's aspect = 0.535156 on linux */
+ font-family : 'testFont';
+ src : url('../../resources/opensans/OpenSans-Regular.woff') format("woff");
+}
+
+.target {
+ display: inline-block;
+ font-family: testFont;
+}
+
+.replica {
+ color: green;
+ margin-right: 30px;
+}
+</style>
+
+<template id="target-template">
+ <span class="container">
+ <div class="target">xx</span>
+ </div>
+</template>
+<script src="resources/interpolation-test.js"></script>
+<script>
+assertInterpolation({
+ property: 'font-size-adjust',
+ from: '0',
+ to: '1.2'
+}, [
+ {at: -2, is: 'none'}, // CSS font-size-adjust can't be negative.
+ {at: -0.3, is: 'none'},
+ {at: 0, is: 'none'},
+ {at: 0.3, is: '0.360000014305115'},
+ {at: 0.6, is: '0.72000002861023'},
+ {at: 1, is: '1.20000004768372'},
+ {at: 1.5, is: '1.80000007152557'},
+]);
+</script>

Powered by Google App Engine
This is Rietveld 408576698