Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
1.8
-
None
-
None
-
Operating System: All
Platform: PC
Description
When xml:space="preserve", trailing spaces should contribute to the <text> element's bounding box. However, in the following document, both <text> elements return the same bounding box:
<svg xmlns='http://www.w3.org/2000/svg'
width='400' height='300' viewBox='0 0 100 100'>
<text x='10' y='10' onclick='alert(evt.target.getBBox().width)' xml:space='preserve'>a</text>
<text x='10' y='30' onclick='alert(evt.target.getBBox().width)' xml:space='preserve'>a </text>
</svg>
The same applies to leading spaces.
Attachments
Issue Links
- is duplicated by
-
BATIK-808 tspans sometimes incorrectly aligned when text-anchor="middle" is used
- Resolved