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

Unified Diff: LayoutTests/animations/interpolation/webkit-mask-box-image-outset-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/webkit-mask-box-image-outset-interpolation.html
diff --git a/LayoutTests/animations/interpolation/webkit-mask-box-image-outset-interpolation.html b/LayoutTests/animations/interpolation/webkit-mask-box-image-outset-interpolation.html
index 137ad551c91f83e9711ace890cf30ef6be7313a6..3bd619451af49e8bb7e9c0bb29d1ed579b79ce5e 100644
--- a/LayoutTests/animations/interpolation/webkit-mask-box-image-outset-interpolation.html
+++ b/LayoutTests/animations/interpolation/webkit-mask-box-image-outset-interpolation.html
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ -webkit-mask-box-image-outset: 30px;
+}
.target {
width: 100px;
height: 100px;
@@ -10,6 +13,7 @@
margin-right: 50px;
-webkit-mask-box-image-slice: 30%;
-webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
+ -webkit-mask-box-image-outset: 10px;
}
.expected {
background-color: green;
@@ -20,6 +24,58 @@
<script>
assertInterpolation({
property: '-webkit-mask-box-image-outset',
+ from: '',
+ to: '20px',
+}, [
+ {at: -0.3, is: '7px'},
+ {at: 0, is: '10px'},
+ {at: 0.4, is: '14px'},
+ {at: 0.6, is: '16px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '25px'},
+]);
+
+assertInterpolation({
+ property: '-webkit-mask-box-image-outset',
+ from: 'initial',
+ to: '20px',
+}, [
+ {at: -0.3, is: '0px'},
+ {at: 0, is: '0px'},
+ {at: 0.4, is: '8px'},
+ {at: 0.6, is: '12px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '30px'},
+]);
+
+assertInterpolation({
+ property: '-webkit-mask-box-image-outset',
+ from: 'inherit',
+ to: '20px',
+}, [
+ {at: -0.3, is: '33px'},
+ {at: 0, is: '30px'},
+ {at: 0.4, is: '26px'},
+ {at: 0.6, is: '24px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '15px'},
+]);
+
+assertInterpolation({
+ property: '-webkit-mask-box-image-outset',
+ from: 'unset',
+ to: '20px',
+}, [
+ {at: -0.3, is: '0px'},
+ {at: 0, is: '0px'},
+ {at: 0.4, is: '8px'},
+ {at: 0.6, is: '12px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '30px'},
+]);
+
+assertInterpolation({
+ property: '-webkit-mask-box-image-outset',
from: '0px',
to: '50px',
}, [

Powered by Google App Engine
This is Rietveld 408576698