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..9f7a9b93728960daf2bfe776b873846be0bbff0c |
--- /dev/null |
+++ b/LayoutTests/svg/repaint/repaint-non-scaling-stroke-text.html |
@@ -0,0 +1,26 @@ |
+<!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"); |
+ requestAnimationFrame(function() { |
+ if (window.testRunner) |
+ finishRepaintTest(); |
+ }); |
+ }, 0); |
+}; |
+</script> |
+<body> |
+<svg> |
+ <g transform="scale(2 2)"> |
fs
2015/04/23 08:24:22
Make this 0.5 instead so that the resulting stroke
Shanmuga Pandi
2015/04/23 08:51:33
Done.
fs
2015/04/23 09:11:33
Please also increase stroke-width.
|
+ <text id="t" x="0" y="50" stroke="none" stroke-width="2" fill="none" font-size="36" vector-effect="none">Hello</text> |
fs
2015/04/23 08:24:22
Make x > 0 (10 perhaps?) so that the repaint rect
Shanmuga Pandi
2015/04/23 08:51:33
Done.
|
+ </g> |
+</svg> |
+</body> |
+</html> |