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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/repaint/transform-text.html

Issue 1553473002: Fix SVG {text, foreignObject} transform for css animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <script src="../../resources/run-after-layout-and-paint.js"></script>
4 <script>
5 window.testIsAsync = true;
6 window.onload = runRepaintAndPixelTest;
7
8 function repaintTest() {
9 var text = document.getElementsByTagName("text")[0];
10 ani = text.animate([{transform: 'translate(0px, 50px)'},{transform: 'translate (200px, 50px)'}], { duration: 2000, iterations: 1});
fs 2016/01/02 16:41:13 Does this bug actually need an animation to reprod
11 setTimeout(function() {
12 ani.currentTime = 1000;
13 ani.pause();
14 runAfterLayoutAndPaint(finishRepaintTest);
15 }, 0);
16 }
17 </script>
18 <body>
19 <svg version="1.1" xmlns="http://www.w3.org/2000/svg">
20 <text fill="#000000" transform="translate(0,50)">TEXT</text>
21 </svg>
22 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698