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

Unified Diff: LayoutTests/svg/zoom/text/zoom-text-and-geometry.html

Issue 18190003: Account for zoom when computing SVG font size. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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: LayoutTests/svg/zoom/text/zoom-text-and-geometry.html
diff --git a/LayoutTests/svg/zoom/text/zoom-text-and-geometry.html b/LayoutTests/svg/zoom/text/zoom-text-and-geometry.html
new file mode 100644
index 0000000000000000000000000000000000000000..be8ba3ae294d2f54ad0666146868a0060b338220
--- /dev/null
+++ b/LayoutTests/svg/zoom/text/zoom-text-and-geometry.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+body {
+ font-size : 16px;
+ font-family : "Times New Roman";
+ zoom: 2;
+}
+rect {
+ fill : green;
+ stroke: green;
+}
+text {
+ fill : red;
+}
+.geometricPrecision {
+ fill : red;
+ text-rendering: geometricPrecision;
+}
+</style>
+</head>
+<body>
+ crbug.com/245996: Text should zoom like geometry.<br/>
+ This test passes if there is no red.<br/>
+ <svg version="1.1" width="32px" height="32px">
+ <text x="10" y="22">F</text>
+ <rect x="10" y="10" width="12" height="12"/>
+ </svg>
+ <svg version="1.1" width="2em" height="2em">
+ <text x="10" y="22">A</text>
+ <rect x="10" y="10" width="12" height="12"/>
+ </svg>
+ <svg version="1.1" width="2em" height="2em" viewbox="0 0 32 32">
+ <text x="10" y="22">I</text>
+ <rect x="10" y="10" width="12" height="12"/>
+ </svg>
+ <svg version="1.1" width="32px" height="32px">
+ <text class="geometricPrecision" x="10" y="22">L</text>
+ <rect x="10" y="10" width="12" height="12"/>
+ </svg>
+ <svg version="1.1" width="2em" height="2em">
+ <text class="geometricPrecision" x="10" y="22">F</text>
+ <rect x="10" y="10" width="12" height="12"/>
+ </svg>
+ <svg version="1.1" width="2em" height="2em" viewbox="0 0 32 32">
+ <text class="geometricPrecision" x="10" y="22">F</text>
+ <rect x="10" y="10" width="12" height="12"/>
+ </svg>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698