Index: LayoutTests/svg/repaint/repaint-non-scaling-stroke-text.html |
diff --git a/LayoutTests/svg/repaint/repaint-non-scaling-stroke-text.html b/LayoutTests/svg/repaint/repaint-non-scaling-stroke-text.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d8d56e29c72b15bc69636c9878b8784aae0e103e |
--- /dev/null |
+++ b/LayoutTests/svg/repaint/repaint-non-scaling-stroke-text.html |
@@ -0,0 +1,27 @@ |
+<!DOCTYPE HTML> |
+<html> |
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<script> |
+window.testIsAsync = true; |
+window.onload = runRepaintTest; |
+ |
+function repaintTest() { |
+ setTimeout(function() { |
+ document.getElementById('t').setAttribute("stroke", "blue"); |
+ document.getElementById('t').setAttribute("vector-effect", "non-scaling-stroke"); |
+ document.getElementById('t').setAttribute("stroke-width", "8"); |
+ requestAnimationFrame(function() { |
+ if (window.testRunner) |
+ finishRepaintTest(); |
+ }); |
+ }, 0); |
+}; |
+</script> |
+<body> |
+<svg> |
+ <g transform="scale(0.5 0.5)"> |
+ <text id="t" x="10" y="50" stroke="none" stroke-width="2" fill="none" font-size="36" vector-effect="none">Hello</text> |
+ </g> |
+</svg> |
+</body> |
+</html> |