Bug 281478
| Summary: | text zoom should scale texts in HTML in SVG documents | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <fujii.hironori> |
| Component: | SVG | Assignee: | Fujii Hironori <fujii.hironori> |
| Status: | NEW | ||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer, zimmermann |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=199236 | ||
| Bug Depends on: | 281561 | ||
| Bug Blocks: | |||
Fujii Hironori
After 284310@main (bug#199236), we no longer need WebCore::Style::BuilderState::useSVGZoomRules().
computed font-size are same both for HTML and SVG.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Fujii Hironori
Pull request: https://github.com/WebKit/WebKit/pull/35203
Radar WebKit Bug Importer
<rdar://problem/138381179>
Fujii Hironori
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" />