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

Unified Diff: LayoutTests/animations/add-keyframes.html

Issue 27537009: Avoid always style recalc when removing stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add the virtual/* versions of add-keyframes to TestExpectations Created 7 years, 2 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 | « LayoutTests/TestExpectations ('k') | Source/core/css/StyleInvalidationAnalysis.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/add-keyframes.html
diff --git a/LayoutTests/animations/add-keyframes.html b/LayoutTests/animations/add-keyframes.html
new file mode 100644
index 0000000000000000000000000000000000000000..0a740016990a39ec1f217544633b0d9b8e780b21
--- /dev/null
+++ b/LayoutTests/animations/add-keyframes.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<head>
+<style>
+#box {
+ position: absolute;
+ left: 0;
+ top: 100px;
+ height: 100px;
+ width: 100px;
+ background-color: blue;
+ -webkit-animation-duration: 1s;
+ -webkit-animation-timing-function: linear;
+ -webkit-animation-name: anim;
+ -webkit-animation-fill-mode: forwards;
+}
+</style>
+<script src="resources/animation-test-helpers.js"></script>
+</head>
+<body>
+<div id="box">
+</div>
+<script>
+document.getElementById('box').offsetTop;
+</script>
+<style>
+/* An animation which couldn't start due to missing keyframes
+Should start once those keyframes are defined. */
+@-webkit-keyframes anim {
+ from { left: 200px; }
+ to { left: 300px; }
+}
+</style>
+<script>
+var expectedValues = [
+ // [animation-name, time, element-id, property, expected-value, tolerance]
+ ["anim", 1, "box", "left", 300, 1],
+];
+runAnimationTest(expectedValues);
+</script>
+<div id="result">
+</div>
+</body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/css/StyleInvalidationAnalysis.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698