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

Unified Diff: LayoutTests/animations/composited-animation-style-update.html

Issue 1153413007: Resolve style in element.animate() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add DOCTYPE Created 5 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/animations/composited-animation-style-update-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/composited-animation-style-update.html
diff --git a/LayoutTests/animations/composited-animation-style-update.html b/LayoutTests/animations/composited-animation-style-update.html
new file mode 100644
index 0000000000000000000000000000000000000000..25f7a923af013aeecb4e8b7b9c1ee1015db12239
--- /dev/null
+++ b/LayoutTests/animations/composited-animation-style-update.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<style>
+div {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+}
+
+#expectation {
+ font-size: 50px;
+ background: red;
+ transform: translate(1em, 1em);
+}
+
+#target {
+ font-size: 1px;
+ background: green;
+}
+</style>
+<div id="expectation"></div>
+<div id="target"></div>
+<script>
+target.style.fontSize = "50px";
+target.animate([
+ {transform: "translate(1em, 1em)"},
+ {transform: "translate(1em, 1em)"},
+], {
+ duration: 1000,
+ iterations: Infinity,
+});
+</script>
« no previous file with comments | « no previous file | LayoutTests/animations/composited-animation-style-update-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698