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

Unified Diff: LayoutTests/svg/animations/animate-to-low-prio-frozen.html

Issue 316013003: Frozen animations still contribute to the sandwich/animation stack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/svg/animations/animate-to-low-prio-frozen-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/animations/animate-to-low-prio-frozen.html
diff --git a/LayoutTests/svg/animations/animate-to-low-prio-frozen.html b/LayoutTests/svg/animations/animate-to-low-prio-frozen.html
new file mode 100644
index 0000000000000000000000000000000000000000..403fcca48eb8b828ebcadc1b732132e8871a5a9d
--- /dev/null
+++ b/LayoutTests/svg/animations/animate-to-low-prio-frozen.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<svg width="200" height="200" style="display: block">
+ <rect width="0" height="100" fill="green">
+ <animate attributeName="width" begin="0s; 1000s" to="200" dur="25ms" fill="freeze"/>
+ <animate attributeName="width" begin="50ms" to="100" dur="500s" onbegin="runTest()"/>
+ </rect>
+</svg>
+<script>
+window.jsTestIsAsync = true;
+
+var rectWidth;
+
+function runTest() {
+ rect = document.querySelector('rect');
+ rectWidth = rect.width.animVal.valueInSpecifiedUnits;
+ // Width expected to be 100 < x <= 200.
+ shouldBeGreaterThan("rectWidth", "100");
+ shouldBeGreaterThanOrEqual("200", "rectWidth");
+ finishJSTest();
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/svg/animations/animate-to-low-prio-frozen-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698