NEW281478
text zoom should scale texts in HTML in SVG documents
https://bugs.webkit.org/show_bug.cgi?id=281478
Summary text zoom should scale texts in HTML in SVG documents
Fujii Hironori
Reported 2024-10-15 00:43:59 PDT
After 284310@main (bug#199236), we no longer need WebCore::Style::BuilderState::useSVGZoomRules(). computed font-size are same both for HTML and SVG.
Attachments
Fujii Hironori
Comment 1 2024-10-15 00:47:14 PDT
Radar WebKit Bug Importer
Comment 2 2024-10-22 00:44:13 PDT
Fujii Hironori
Comment 3 2024-10-24 00:18:04 PDT
With the WIP patch <https://github.com/WebKit/WebKit/commit/98a585cdf128de8685e8b4929de5cb6afd4a2d7a>, in svg/zoom/page/zoom-foreignObject.svg, line-height of <xhtml:a> is zoomed by page zoom unexpectedly. It is affected by the font size of the parent <svg:foreignObject>. This can be worked around by adding a parent element <xhtml:html>. diff --git a/LayoutTests/svg/zoom/page/zoom-foreignObject.svg b/LayoutTests/svg/zoom/page/zoom-foreignObject.svg index 52675c5cee95..07e329112cff 100644 --- a/LayoutTests/svg/zoom/page/zoom-foreignObject.svg +++ b/LayoutTests/svg/zoom/page/zoom-foreignObject.svg @@ -5,9 +5,11 @@ <!-- HTML FO text --> <foreignObject width="250" height="200" transform="scale(3) skewY(5) skewX(5)"> + <xhtml:html> <xhtml:div>This is a text</xhtml:div> <xhtml:a href="http://www.example.com/">and a link.</xhtml:a><xhtml:br/> <xhtml:div>[HTML]</xhtml:div> + </xhtml:html> </foreignObject> <rect width="250" height="200" stroke="green" fill="none" />
Note You need to log in before you can comment on or make changes to this bug.