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

Unified Diff: LayoutTests/animations/interpolation/border-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/border-image-outset-interpolation.html
diff --git a/LayoutTests/animations/interpolation/border-image-outset-interpolation.html b/LayoutTests/animations/interpolation/border-image-outset-interpolation.html
index f04871974c3b2111213cc654e847fb587c780174..40e0a73520dd4145278a94141fff24965aebba4d 100644
--- a/LayoutTests/animations/interpolation/border-image-outset-interpolation.html
+++ b/LayoutTests/animations/interpolation/border-image-outset-interpolation.html
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ border-image-outset: 10px;
+}
.target {
width: 50px;
height: 50px;
@@ -11,6 +14,7 @@
border-image-slice: 30%;
background-clip: content-box;
border-image-source: linear-gradient(45deg, pink, blue, white, black, green);
+ border-image-outset: 1px;
}
.expected {
background-color: green;
@@ -21,43 +25,80 @@
<script>
assertInterpolation({
property: 'border-image-outset',
+ from: '',
+ to: '2px',
+}, [
+ {at: -0.3, is: '0.7px'},
+ {at: 0, is: '1px'},
+ {at: 0.3, is: '1.3px'},
+ {at: 0.6, is: '1.6px'},
+ {at: 1, is: '2px'},
+ {at: 1.5, is: '2.5px'},
+]);
+
+assertInterpolation({
+ property: 'border-image-outset',
+ from: 'initial',
+ to: '2px',
+}, [
+ {at: -0.3, is: '0px'}, // Non-negative
+ {at: 0, is: '0px'},
+ {at: 0.3, is: '0.6px'},
+ {at: 0.6, is: '1.2px'},
+ {at: 1, is: '2px'},
+ {at: 1.5, is: '3px'},
+]);
+
+assertInterpolation({
+ property: 'border-image-outset',
+ from: 'inherit',
+ to: '2px',
+}, [
+ {at: -0.3, is: '12.4px'},
+ {at: 0, is: '10px'},
+ {at: 0.3, is: '7.6px'},
+ {at: 0.6, is: '5.2px'},
+ {at: 1, is: '2px'},
+ {at: 1.5, is: '0px'},
+]);
+
+assertInterpolation({
+ property: 'border-image-outset',
+ from: 'unset',
+ to: '2px',
+}, [
+ {at: -0.3, is: '0px'}, // Non-negative
+ {at: 0, is: '0px'},
+ {at: 0.3, is: '0.6px'},
+ {at: 0.6, is: '1.2px'},
+ {at: 1, is: '2px'},
+ {at: 1.5, is: '3px'},
+]);
+
+assertInterpolation({
+ property: 'border-image-outset',
from: '0px',
to: '5px',
}, [
- {at: -0.3, is: '0px'}, // CSS border-image-outset can't be negative.
+ {at: -0.3, is: '0px'}, // Non-negative
{at: 0, is: '0px'},
- {at: 0.1, is: '0.5px'},
- {at: 0.2, is: '1px'},
{at: 0.3, is: '1.5px'},
- {at: 0.4, is: '2px'},
- {at: 0.5, is: '2.5px'},
{at: 0.6, is: '3px'},
- {at: 0.7, is: '3.5px'},
- {at: 0.8, is: '4px'},
- {at: 0.9, is: '4.5px'},
{at: 1, is: '5px'},
{at: 1.5, is: '7.5px'},
- {at: 10, is: '50px'}
]);
+
assertInterpolation({
property: 'border-image-outset',
from: '0',
- to: '5',
+ to: '1',
}, [
- {at: -0.3, is: '0'}, // CSS border-image-outset can't be negative.
+ {at: -0.3, is: '0'}, // Non-negative
{at: 0, is: '0'},
- {at: 0.1, is: '0.5'},
- {at: 0.2, is: '1'},
- {at: 0.3, is: '1.5'},
- {at: 0.4, is: '2'},
- {at: 0.5, is: '2.5'},
- {at: 0.6, is: '3'},
- {at: 0.7, is: '3.5'},
- {at: 0.8, is: '4'},
- {at: 0.9, is: '4.5'},
- {at: 1, is: '5'},
- {at: 1.5, is: '7.5'},
- {at: 10, is: '50'}
+ {at: 0.3, is: '0.3'},
+ {at: 0.6, is: '0.6'},
+ {at: 1, is: '1'},
+ {at: 1.5, is: '1.5'},
]);
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698