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

Unified Diff: LayoutTests/animations/interpolation/shape-outside-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/shape-outside-interpolation.html
diff --git a/LayoutTests/animations/interpolation/shape-outside-interpolation.html b/LayoutTests/animations/interpolation/shape-outside-interpolation.html
index 6526c154e7ca9d9f509c2944283a33e53a7b3aa3..e490595097aeece1ff6352fd9d3786dec7254266 100644
--- a/LayoutTests/animations/interpolation/shape-outside-interpolation.html
+++ b/LayoutTests/animations/interpolation/shape-outside-interpolation.html
@@ -1,5 +1,13 @@
<!DOCTYPE html>
<meta charset="UTF-8">
+<style>
+.parent {
+ shape-outside: circle(80% at 30% 10%);
+}
+.target {
+ shape-outside: circle(60% at 10% 30%);
+}
+</style>
<body>
<script src="resources/interpolation-test.js"></script>
<script>
@@ -7,6 +15,44 @@
assertInterpolation({
property: 'shape-outside',
+ from: '',
+ to: 'circle(40% at 20% 20%)',
+}, [
+ {at: -0.3, is: 'circle(66% at 7% 33%)'},
+ {at: 0, is: 'circle(60% at 10% 30%)'},
+ {at: 0.3, is: 'circle(54% at 13% 27%)'},
+ {at: 0.6, is: 'circle(48% at 16% 24%)'},
+ {at: 1, is: 'circle(40% at 20% 20%)'},
+ {at: 1.5, is: 'circle(30% at 25% 15%)'},
+]);
+
+assertNoInterpolation({
+ property: 'shape-outside',
+ from: 'initial',
+ to: 'circle(40% at 20% 20%)',
+});
+
+assertInterpolation({
+ property: 'shape-outside',
+ from: 'inherit',
+ to: 'circle(40% at 20% 20%)',
+}, [
+ {at: -0.3, is: 'circle(92% at 33% 7%)'},
+ {at: 0, is: 'circle(80% at 30% 10%)'},
+ {at: 0.3, is: 'circle(68% at 27% 13%)'},
+ {at: 0.6, is: 'circle(56% at 24% 16%)'},
+ {at: 1, is: 'circle(40% at 20% 20%)'},
+ {at: 1.5, is: 'circle(20% at 15% 25%)'},
+]);
+
+assertNoInterpolation({
+ property: 'shape-outside',
+ from: 'unset',
+ to: 'circle(40% at 20% 20%)',
+});
+
+assertInterpolation({
+ property: 'shape-outside',
from: 'circle(100% at 0% 0%)',
to: 'circle(50% at 25% 25%)',
}, [

Powered by Google App Engine
This is Rietveld 408576698