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

Unified Diff: LayoutTests/svg/repaint/repaint-non-scaling-stroke-text.html

Issue 1072403010: SVG Text should respect non-scaling-stroke. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 5 years, 8 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/repaint/repaint-non-scaling-stroke-text-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/repaint/repaint-non-scaling-stroke-text-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698