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

Unified Diff: third_party/WebKit/LayoutTests/svg/repaint/transform-text-element.svg

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/svg/repaint/transform-text-element.svg
diff --git a/third_party/WebKit/LayoutTests/svg/repaint/transform-text-element.svg b/third_party/WebKit/LayoutTests/svg/repaint/transform-text-element.svg
new file mode 100644
index 0000000000000000000000000000000000000000..5fe2abda57435da66ad76af0ffbdafb00adbaea3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/repaint/transform-text-element.svg
@@ -0,0 +1,12 @@
+<svg width="400" height="400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintTest()">
+<script xlink:href="../../fast/repaint/resources/text-based-repaint.js"></script>
fs 2016/01/07 11:38:46 You should also include the resources/ahem.js scri
+<script>
+<![CDATA[
fs 2016/01/07 11:38:45 (If you make these tests HTML w/ inline SVG instea
+ function repaintTest() {
+ var text = document.getElementsByTagName("text")[0];
+ text.style.transform = 'translate(100px, 0px)';
+ }
+]]>
+</script>
+ <text x="10" y="90" font-size="100" font-family="Ahem">Test</text>
fs 2016/01/07 11:38:45 IIRC, the "Ahem" font has an ascent of 800 (of 100
+</svg>

Powered by Google App Engine
This is Rietveld 408576698