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

Unified Diff: LayoutTests/animations/interpolation/border-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
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/border-image-source-interpolation.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/interpolation/border-image-slice-interpolation.html
diff --git a/LayoutTests/animations/interpolation/border-image-slice-interpolation.html b/LayoutTests/animations/interpolation/border-image-slice-interpolation.html
index 82d1094177867d6b973f9abb63da659b8295b731..b54a8cdeb77ee6d4cb90580c356c4c939becf0a0 100644
--- a/LayoutTests/animations/interpolation/border-image-slice-interpolation.html
+++ b/LayoutTests/animations/interpolation/border-image-slice-interpolation.html
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ border-image-slice: 50%;
+}
.target {
width: 50px;
height: 50px;
@@ -8,6 +11,7 @@
display: inline-block;
border: 25px;
border-image-source: linear-gradient(45deg, red, blue, green);
+ border-image-slice: 20%;
}
.expected {
background-color: green;
@@ -19,6 +23,62 @@
<script>
assertInterpolation({
property: 'border-image-slice',
+ from: '',
+ to: '10%',
+}, [
+ {at: -0.3, is: '23%'},
+ {at: 0, is: '20%'},
+ {at: 0.3, is: '17%'},
+ {at: 0.5, is: '15%'},
+ {at: 0.6, is: '14%'},
+ {at: 1, is: '10%'},
+ {at: 1.5, is: '5%'},
+]);
+
+assertInterpolation({
+ property: 'border-image-slice',
+ from: 'initial',
+ to: '10%',
+}, [
+ {at: -0.3, is: '127%'},
+ {at: 0, is: '100%'},
+ {at: 0.3, is: '73%'},
+ {at: 0.5, is: '55%'},
+ {at: 0.6, is: '46%'},
+ {at: 1, is: '10%'},
+ {at: 1.5, is: '0%'},
+]);
+
+assertInterpolation({
+ property: 'border-image-slice',
+ from: 'inherit',
+ to: '10%',
+}, [
+ {at: -0.3, is: '62%'},
+ {at: 0, is: '50%'},
+ {at: 0.3, is: '38%'},
+ {at: 0.5, is: '30%'},
+ {at: 0.6, is: '26%'},
+ {at: 1, is: '10%'},
+ {at: 1.5, is: '0%'},
+]);
+
+assertInterpolation({
+ property: 'border-image-slice',
+ from: 'unset',
+ to: '10%',
+}, [
+ {at: -0.3, is: '127%'},
+ {at: 0, is: '100%'},
+ {at: 0.3, is: '73%'},
+ {at: 0.5, is: '55%'},
+ {at: 0.6, is: '46%'},
+ {at: 1, is: '10%'},
+ {at: 1.5, is: '0%'},
+]);
+
+assertInterpolation({
+ property: 'border-image-slice',
from: '0%',
to: '50%',
}, [
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/border-image-source-interpolation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698