summaryrefslogtreecommitdiff
path: root/svgio/qa/cppunit/data
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-04-09 13:56:13 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-04-18 18:21:15 +0200
commit86a8a3a43b642fc13bae6a89720496285f8f73d7 (patch)
tree4daee3cea3dbfdbb36114679a5bc3371c5328cc8 /svgio/qa/cppunit/data
parente27572686130df43d1d65c574b0c34f39fc0d1a9 (diff)
tdf#160594: Use the recommended fallback of 0.5em for ex in font-size
This fixes the error of identical treatment of em and ex in font-size, which violated https://drafts.csswg.org/css-values-4/#font-relative-length. The fix uses the fallback of 0.5em for ex, similar to the code used in SvgNumber::solveNonPercentage. A follow-up should implement the correct use of "x-height of the first available font". Change-Id: Id9d581994e158d629d9752299ad93ac7e9fe4cad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166234 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svgio/qa/cppunit/data')
-rw-r--r--svgio/qa/cppunit/data/dy_in_exs.svg7
1 files changed, 7 insertions, 0 deletions
diff --git a/svgio/qa/cppunit/data/dy_in_exs.svg b/svgio/qa/cppunit/data/dy_in_exs.svg
new file mode 100644
index 000000000000..816a64a4586c
--- /dev/null
+++ b/svgio/qa/cppunit/data/dy_in_exs.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+
+<svg xmlns="http://www.w3.org/2000/svg" width="1in" height="1in" viewBox="0 0 100% 100%">
+
+ <text x="5" y="20" style="font-size:16px;font-family:Liberation Sans">foo
+ <tspan x="5" dy="3ex" style="font-size:1ex">bar</tspan></text>
+</svg> \ No newline at end of file