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

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: Actually make unittests pass 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
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..fc1f74ef9d55c81313b867d358da60c8b36a4608
--- /dev/null
+++ b/LayoutTests/animations/composited-animation-style-update.html
@@ -0,0 +1,30 @@
+<style>
esprehn 2015/06/04 06:35:01 <!DOCTYPE html>
alancutter (OOO until 2018) 2015/06/04 06:45:56 Done.
+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>

Powered by Google App Engine
This is Rietveld 408576698