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

Unified Diff: LayoutTests/animations/interpolation/webkit-mask-box-image-slice-interpolation.html

Issue 1262283002: Fix 50% flip handling of CSS Animations using CSS wide keywords (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-slice-interpolation.html
diff --git a/LayoutTests/animations/interpolation/webkit-mask-box-image-slice-interpolation.html b/LayoutTests/animations/interpolation/webkit-mask-box-image-slice-interpolation.html
index 757f9c1645f53688f428638d17c7cd22e920c352..c5914236dce99496811967b81f6e1c055475b306 100644
--- a/LayoutTests/animations/interpolation/webkit-mask-box-image-slice-interpolation.html
+++ b/LayoutTests/animations/interpolation/webkit-mask-box-image-slice-interpolation.html
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ -webkit-mask-box-image-slice: 30%;
+}
.target {
width: 50px;
height: 50px;
@@ -8,6 +11,7 @@
display: inline-block;
border: 25px;
-webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
+ -webkit-mask-box-image-slice: 10%;
}
.expected {
background-color: green;
@@ -19,6 +23,47 @@
<script>
assertInterpolation({
property: '-webkit-mask-box-image-slice',
+ from: '',
+ to: '20%',
+}, [
+ {at: -0.3, is: '7%'},
+ {at: 0, is: '10%'},
+ {at: 0.4, is: '14%'},
+ {at: 0.6, is: '16%'},
+ {at: 1, is: '20%'},
+ {at: 1.5, is: '25%'},
+ {at: 10, is: '110%'},
+]);
+
+assertNoInterpolation({
+ property: '-webkit-mask-box-image-slice',
+ from: 'initial',
+ to: '20%',
+});
+
+assertInterpolation({
+ property: '-webkit-mask-box-image-slice',
+ from: 'inherit',
+ to: '20%',
+}, [
+ {at: -0.3, is: '33%'},
+ {at: 0, is: '30%'},
+ {at: 0.4, is: '26%'},
+ {at: 0.6, is: '24%'},
+ {at: 1, is: '20%'},
+ {at: 1.5, is: '15%'},
+ {at: 10, is: '0%'},
+]);
+
+assertNoInterpolation({
+ property: '-webkit-mask-box-image-slice',
+ from: 'unset',
+ to: '20%',
+});
+
+
+assertInterpolation({
+ property: '-webkit-mask-box-image-slice',
from: '0%',
to: '50%',
}, [

Powered by Google App Engine
This is Rietveld 408576698