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

Unified Diff: LayoutTests/animations/interpolation/shape-image-threshold-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/shape-image-threshold-interpolation.html
diff --git a/LayoutTests/animations/interpolation/shape-image-threshold-interpolation.html b/LayoutTests/animations/interpolation/shape-image-threshold-interpolation.html
index eee693939ecbae52cb994fd31138a02d9bca137c..da47b9ff658b3d34fdb0aad2f7d588980325f252 100644
--- a/LayoutTests/animations/interpolation/shape-image-threshold-interpolation.html
+++ b/LayoutTests/animations/interpolation/shape-image-threshold-interpolation.html
@@ -1,10 +1,70 @@
<!DOCTYPE html>
<meta charset="UTF-8">
+<style>
+.parent {
+ shape-image-threshold: 0.4;
+}
+.target {
+ shape-image-threshold: 0.6;
+}
+</style>
<body>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'shape-image-threshold',
+ from: '',
+ to: '0.8',
+}, [
+ {at: -1.5, is: '0.3'},
+ {at: -0.5, is: '0.5'},
+ {at: 0, is: '0.6'},
+ {at: 0.5, is: '0.7'},
+ {at: 1, is: '0.8'},
+ {at: 1.5, is: '0.9'},
+]);
+
+assertInterpolation({
+ property: 'shape-image-threshold',
+ from: 'initial',
+ to: '0.8',
+}, [
+ {at: -1.5, is: '0'},
+ {at: -0.5, is: '0'},
+ {at: 0, is: '0'},
+ {at: 0.5, is: '0.4'},
+ {at: 1, is: '0.8'},
+ {at: 1.5, is: '1'},
+]);
+
+assertInterpolation({
+ property: 'shape-image-threshold',
+ from: 'inherit',
+ to: '0.8',
+}, [
+ {at: -1.5, is: '0'},
+ {at: -0.5, is: '0.2'},
+ {at: 0, is: '0.4'},
+ {at: 0.5, is: '0.6'},
+ {at: 1, is: '0.8'},
+ {at: 1.5, is: '1'},
+]);
+
+assertInterpolation({
+ property: 'shape-image-threshold',
+ from: 'unset',
+ to: '0.8',
+}, [
+ {at: -1.5, is: '0'},
+ {at: -0.5, is: '0'},
+ {at: 0, is: '0'},
+ {at: 0.5, is: '0.4'},
+ {at: 1, is: '0.8'},
+ {at: 1.5, is: '1'},
+]);
+
+assertInterpolation({
+ property: 'shape-image-threshold',
from: '0.5',
to: '1'
}, [

Powered by Google App Engine
This is Rietveld 408576698