Commit f212b47f authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

prevent rendering issues by missusing xhtml namespace for svg elements. browser will handle.

parent 8d8ebd39
......@@ -166,8 +166,12 @@ typeswitch($node)
else
if(contains($node//tei:figDesc/tei:ref/text(),"horizontale Schleife von links oben nach rechts unten"))
then (
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="auto" viewBox="0 0 220 29">
{element svg:path {
(: there are rendering issues when using the correct svg namespace. :)
element xhtml:svg {
attribute width {"100%"},
attribute height {"auto"},
attribute viewBox {"0 0 220 29"},
element xhtml:path {
attribute id {"sl2r1"},
attribute fill {"none"},
attribute stroke {"darkslategrey"},
......@@ -175,8 +179,8 @@ typeswitch($node)
attribute d {"M 14.00,18.18 " ||
" C 4.55,19.82 -2.73,27.09 5.27,26.55 " ||
" 65.64,20.91 197.64,-20.00 218.18,16.36 " ||
" 213.64,19.82 203.45,13.64 203.45,13.64" }}}
</svg>,
" 213.64,19.82 203.45,13.64 203.45,13.64" }}
},
element xhtml:div {
attribute class {'hrHover'},
'Absatzlinie'
......@@ -1375,7 +1379,7 @@ let $lineHeight := fontaneTransfo:lineHeight( ($node/ancestor::tei:zone)[1] ),
(: Unabhängig von margin-left in style, muss bei einem V der margin-left wert gleich dem 1. Wert aus der Funktion sein. :)
$style := $style || ';margin-left:-'||$parameter[1]||'cm;'
return
<svg xmlns="http://www.w3.org/2000/svg" class="caretV" style="{$style}" width="{string(($l + $r) div 100)}cm" height="0.6cm" viewbox="{$viewbox}">
<svg xmlns="http://www.w3.org/2000/svg" class="caretV" style="{$style}" width="{string(($l + $r) div 100)}cm" height="0.6cm" viewBox="{$viewbox}">
<polyline points="0,0 {string($l)},{$height} {string($l + $r)},0" fill="none" stroke-width="3"/>
</svg>
case 'caret:slash' return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment