rescaling a SVG within an embed element is not working properly
Reported by
maye...@gmail.com,
May 27 2016
|
||||||
Issue descriptionDevice name: Nexus 5 Application version: Chrome 50.0.2661.89 OS: Android 6.0.1 Double checked / confirmed with: Device name: Samsung Galaxy Note 10.1 2014 edition (SM-P605) Application version: Chrome 50.0.2661.89 OS: Android 5.1.1 URLs: https://jsfiddle.net/1250z11j/ Steps to reproduce: (1) Create a web page that uses <embed> to insert a SVG drawing and has a style attribute to set width and height (2) Change that style attribute with JavaScript Expected result: The SVG will rescale itself / its content according to the style attribute. Actual result: Only the <embed> element get's resized (see the red border) but not the content. Interesting side fact: I found this behaviour as only the Android devices were not showing my web page correctly (desktop firefox and chrome as well as an iPad are working as intended). Creating the linked fiddle the desktop chrome 51.0.2704.63 (64-bit) is now also not working properly. And even more interesting: opening the development console and hovering the mouse over the <svg> in the resized <embed> shows that the browser thinks it has a size of 200x150, which is completely wrong. When I change the width of the <embed> in the development console directly the SVG content is immediately rescaled to the proper size.
,
May 30 2016
,
Jun 8 2016
Changing height of the embed object, not doing relayout for SVG root. relayoutChildren is false for height changes.
,
Mar 28 2017
,
Mar 28 2017
,
Apr 12 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 12 2018
Works now. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by f...@opera.com
, May 30 2016Labels: -OS-Android OS-All Type-Bug
Status: Available (was: Unconfirmed)