changed svg files to work with older browsers for the pre white-space, using old xml:space instead

This commit is contained in:
asus
2024-05-27 15:42:56 +02:00
parent 680c5808a3
commit e21e5b8938
7 changed files with 83 additions and 69 deletions

View File

@@ -16,22 +16,24 @@
font-size: 1.5rem;
font-weight: normal;
font-style: normal;
white-space: pre;
/*
* dont work in chrome so use 'tspan' with 'dy' and 'xml:space'
*
line-height: 0.8;
white-space: pre;
*/
}
</style>
</defs>
<text x="0" y="0">
 
 
 
<tspan x="0" dy="0.8em" xml:space="preserve"></tspan>
<tspan x="0" dy="0.8em" xml:space="preserve">  </tspan>
<tspan x="0" dy="0.8em" xml:space="preserve"></tspan>
<tspan x="0" dy="0.8em" xml:space="preserve"></tspan>
<tspan x="0" dy="0.8em" xml:space="preserve">  </tspan>
<tspan x="0" dy="0.8em" xml:space="preserve"></tspan>
<tspan x="0" dy="0.8em" xml:space="preserve"></tspan>
<tspan x="0" dy="0.8em" xml:space="preserve">  </tspan>
<tspan x="0" dy="0.8em" xml:space="preserve"></tspan>
</text>
<!-- Other SVG elements and attributes -->
</svg>

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB