SVGImage zoom out more than other element with Browser scale(ctrl + +/-).
Reported by
hugh...@hotmail.com,
Jul 3
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Steps to reproduce the problem: 1. Open svg.html 2. Use ctrl + '+' to zoom out the document. What is the expected behavior? SVGImage should not cut off. What went wrong? SVGImage is cut off. But svg with path works correctly. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 67.0.3396.99 Channel: stable OS Version: 10.0 Flash Version: Any workaround?
,
Jul 3
Looks like we're missing to apply the scale factor. Adding a 'viewBox' would probably work as a workaround.
,
Jul 3
,
Jul 3
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e3848980d7f21941e1ff18ede8f33843d6b8a2a9 commit e3848980d7f21941e1ff18ede8f33843d6b8a2a9 Author: Fredrik Söderquist <fs@opera.com> Date: Tue Jul 03 13:38:21 2018 Scale the viewport size in SVGImagePainter LayoutImageResource::GetImage expects a zoomed container size (it passes it unmodified to SVGImageForContainer::Create which unzooms it), so we need to scale the viewport size before passing it. Bug: 859774 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I24f7f0b1f402aaef112882ab146d573981889cae Reviewed-on: https://chromium-review.googlesource.com/1124163 Reviewed-by: Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#572190} [add] https://crrev.com/e3848980d7f21941e1ff18ede8f33843d6b8a2a9/third_party/WebKit/LayoutTests/svg/custom/image-with-zoom-and-no-intrinsic-dims-expected.html [add] https://crrev.com/e3848980d7f21941e1ff18ede8f33843d6b8a2a9/third_party/WebKit/LayoutTests/svg/custom/image-with-zoom-and-no-intrinsic-dims.html [modify] https://crrev.com/e3848980d7f21941e1ff18ede8f33843d6b8a2a9/third_party/blink/renderer/core/paint/svg_image_painter.cc
,
Jul 3
|
||||
►
Sign in to add a comment |
||||
Comment 1 by woxxom@gmail.com
, Jul 3