Closed Bug 298800 Opened 20 years ago Closed 20 years ago

text elements inside of svg rendered at wrong size when user changes browser text scaling

Categories

(Core :: SVG, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 291785

People

(Reporter: blblack, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050624 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050624 Firefox/1.0+


In the simplistic example at http://www.dtmf.com/svgt/x.xml, there is an <svg>
image embedded inside a <div> which has its height and width set in terms of
"ems" rather than pixels.  The <svg> itself only specified a viewBox size.  The
purpose (which works) is that if you use shift+/shift- to scale the font size of
the web page, the image scales with the html text.

Inside this <svg> element, there is a <text> element.  So long as the browser is
set to "Normal" text size when the page is loaded, everything works fine.

However, if you scale the page larger or smaller, and then reload the page while
scaled, the contained <text> inside the <svg> is now scaled wrong (larger or
smaller than it should be relative to the rest of the <svg> image).  This
persists relatively as you continue to scale with shift+/shift- once it occurs.
 Resetting the browser text size to "Normal" and reloading again corrects it.


Reproducible: Always

Steps to Reproduce:
This is a duplicate of bug #291785.  See the discussion there for the status.


*** This bug has been marked as a duplicate of 291785 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.