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

Unified Diff: third_party/WebKit/LayoutTests/svg/batik/text/svg-text-super-sub-tiny-fonts.svg

Issue 2427773002: Fixing superscript and subscript baseline for tiny fonts in SVG
Patch Set: Rebaseline Created 3 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/batik/text/svg-text-super-sub-tiny-fonts.svg
diff --git a/third_party/WebKit/LayoutTests/svg/batik/text/svg-text-super-sub-tiny-fonts.svg b/third_party/WebKit/LayoutTests/svg/batik/text/svg-text-super-sub-tiny-fonts.svg
new file mode 100644
index 0000000000000000000000000000000000000000..8975b9216abffd8c6b761d3794d8333e54ed0fb6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/batik/text/svg-text-super-sub-tiny-fonts.svg
@@ -0,0 +1,49 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
+"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+
+<!--
+
+ Copyright 2001 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<!-- ========================================================================= -->
+<!-- Tests small font sizes (<1) with various text features. -->
+<!-- This is basically a copy of the textFeatures test file with a small -->
+<!-- viewbox set. -->
+<!-- -->
+<!-- @author bella.robinson@cmis.csiro.au -->
+<!-- @version $Id: smallFonts.svg,v 1.4 2004/08/18 07:12:21 vhardy Exp -->
+<!-- ========================================================================= -->
+
+<?xml-stylesheet type="text/css" href="../resources/test.css" ?>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="500" viewBox="0 0 9 10">
+ <!-- ============================================================= -->
+ <!-- Test content -->
+ <!-- ============================================================= -->
+
+ <g id="testContent" stroke-width="0.01">
+
+ <g font-family="dialog" font-size="0.3"
+ text-anchor="start" fill="MidnightBlue">
+
+ <text x="10%" y="10%">
+ <tspan dx="0.1" baseline-shift="super" font-size="0.2">superscript</tspan> and
+ <tspan baseline-shift="sub" font-size="0.2">subscript</tspan>
+ </text>
+
+ </g>
+ </g>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698