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

Unified Diff: LayoutTests/animations/interpolation/text-indent-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/text-indent-interpolation.html
diff --git a/LayoutTests/animations/interpolation/text-indent-interpolation.html b/LayoutTests/animations/interpolation/text-indent-interpolation.html
index d6402f14087e2c7a37d04a964dae0f62b921ff96..fec11a053d181c4f5341fe4072fa94a610aace27 100644
--- a/LayoutTests/animations/interpolation/text-indent-interpolation.html
+++ b/LayoutTests/animations/interpolation/text-indent-interpolation.html
@@ -1,19 +1,76 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ text-indent: 70px;
+}
.target {
- font: 50px sans-serif;
+ font: 10px sans-serif;
+ text-indent: 10px;
+ margin-left: 20px;
}
.expected {
color: green;
}
</style>
<body>
-<template id="target-template">The helipad</template>
<script src="resources/interpolation-test.js"></script>
+<template id="target-template">T</template>
<script>
assertInterpolation({
property: 'text-indent',
+ from: '',
+ to: '40px',
+}, [
+ {at: -0.3, is: '1px'},
+ {at: 0, is: '10px'},
+ {at: 0.3, is: '19px'},
+ {at: 0.6, is: '28px'},
+ {at: 1, is: '40px'},
+ {at: 1.5, is: '55px'},
+]);
+
+assertInterpolation({
+ property: 'text-indent',
+ from: 'initial',
+ to: '20px',
+}, [
+ {at: -0.3, is: '-6px'},
+ {at: 0, is: '0px'},
+ {at: 0.3, is: '6px'},
+ {at: 0.6, is: '12px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '30px'},
+]);
+
+assertInterpolation({
+ property: 'text-indent',
+ from: 'inherit',
+ to: '20px',
+}, [
+ {at: -0.3, is: '85px'},
+ {at: 0, is: '70px'},
+ {at: 0.3, is: '55px'},
+ {at: 0.6, is: '40px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '-5px'},
+]);
+
+assertInterpolation({
+ property: 'text-indent',
+ from: 'unset',
+ to: '20px',
+}, [
+ {at: -0.3, is: '85px'},
+ {at: 0, is: '70px'},
+ {at: 0.3, is: '55px'},
+ {at: 0.6, is: '40px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '-5px'},
+]);
+
+assertInterpolation({
+ property: 'text-indent',
from: '0px',
to: '50px'
}, [

Powered by Google App Engine
This is Rietveld 408576698