New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 615556 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

rescaling a SVG within an embed element is not working properly

Reported by maye...@gmail.com, May 27 2016

Issue description

Device 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.
 

Comment 1 by f...@opera.com, May 30 2016

Cc: davve@opera.com
Labels: -OS-Android OS-All Type-Bug
Status: Available (was: Unconfirmed)

Comment 2 by f...@opera.com, May 30 2016

Components: Blink>SVG
Changing height of the embed object, not doing relayout for SVG root.
relayoutChildren is false for height changes.

Comment 4 by davve@opera.com, Mar 28 2017

Cc: davve@chromium.org

Comment 5 by davve@opera.com, Mar 28 2017

Cc: -davve@opera.com
Project Member

Comment 6 by sheriffbot@chromium.org, Apr 12 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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
Status: WontFix (was: Untriaged)
Works now.

Sign in to add a comment