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

Unified Diff: LayoutTests/animations/interpolation/outline-width-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/outline-width-interpolation.html
diff --git a/LayoutTests/animations/interpolation/outline-width-interpolation.html b/LayoutTests/animations/interpolation/outline-width-interpolation.html
index e31fc1e5d58e92299533fea6948b84c2bda4499d..c619552ad762953bdf034c89af5c2c3227e1106e 100644
--- a/LayoutTests/animations/interpolation/outline-width-interpolation.html
+++ b/LayoutTests/animations/interpolation/outline-width-interpolation.html
@@ -1,13 +1,19 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ outline: solid transparent;
+ outline-width: 30px;
+}
.target {
width: 50px;
height: 50px;
background-color: black;
display: inline-block;
- outline: 2px solid orange;
margin: 18px;
+ outline: solid orange;
+ outline-width: 10px;
+ opacity: 0.5;
}
.expected {
background-color: green;
@@ -18,8 +24,60 @@
<script>
assertInterpolation({
property: 'outline-width',
+ from: '',
+ to: '20px',
+}, [
+ {at: -0.3, is: '7px'},
+ {at: 0, is: '10px'},
+ {at: 0.3, is: '13px'},
+ {at: 0.6, is: '16px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '25px'},
+]);
+
+assertInterpolation({
+ property: 'outline-width',
+ from: 'initial',
+ to: '20px',
+}, [
+ {at: -0.3, is: '0px'},
+ {at: 0, is: '3px'},
+ {at: 0.3, is: '8px'},
+ {at: 0.6, is: '13px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '29px'},
+]);
+
+assertInterpolation({
+ property: 'outline-width',
+ from: 'inherit',
+ to: '20px',
+}, [
+ {at: -0.3, is: '33px'},
+ {at: 0, is: '30px'},
+ {at: 0.3, is: '27px'},
+ {at: 0.6, is: '24px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '15px'},
+]);
+
+assertInterpolation({
+ property: 'outline-width',
+ from: 'unset',
+ to: '20px',
+}, [
+ {at: -0.3, is: '0px'},
+ {at: 0, is: '3px'},
+ {at: 0.3, is: '8px'},
+ {at: 0.6, is: '13px'},
+ {at: 1, is: '20px'},
+ {at: 1.5, is: '29px'},
+]);
+
+assertInterpolation({
+ property: 'outline-width',
from: '0px',
- to: '10px'
+ to: '10px',
}, [
{at: -0.3, is: '0px'}, // CSS outline-width can't be negative.
{at: 0, is: '0px'},
@@ -28,10 +86,11 @@ assertInterpolation({
{at: 1, is: '10px'},
{at: 1.5, is: '15px'}
]);
+
assertInterpolation({
property: 'outline-width',
from: 'thick',
- to: '15px'
+ to: '15px',
}, [
{at: -2, is: '0px'}, // CSS outline-width can't be negative.
{at: -0.3, is: '2px'},

Powered by Google App Engine
This is Rietveld 408576698