New issue
Advanced search Search tips

Issue 693834 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

object-fit and object-position do not apply to svg in object tag

Reported by francois...@outlook.com, Feb 18 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3015.0 Safari/537.36

Steps to reproduce the problem:
Open temp.html from attachments or https://1drv.ms/u/s!Av6HldQ1OB8gpcBwzh80yDruBWsNFg

It contains a small object tag referencing a square svg which should be uscaled to cover the entire element due to object-fit:cover specified on the object tag

What is the expected behavior?
You shouldn't see any yellow as the black rectangle covers the entire area of the svg; an alert should tell you the rectangle is 150x150 big, and located at 0x0

What went wrong?
Object-fit:cover isn't applied so the svg rect is resized to be contained in the object tag, not to cover it

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 58.0.3015.0  Channel: canary
OS Version: 10.0
Flash Version: 

Works in Firefox. Edge does not support object-fit yet but the feature is "high priority" on their backlog.

 
Labels: Needs-Triage-M58
Cc: jmukthavaram@chromium.org
Labels: Needs-Feedback
Able to reproduce the issue on Windows 7, Windows 10 & Linux Ubuntu 14.04 using chrome stable-56.0.2924.87, canary-58.0.3018.0 & reported version- 58.0.3015.0 as per the below steps:
1. Unzip folder from the above provided URl
2. opened test.html file in chrome
3. Observed only Yellow rectangle box without any popup message

Please find the attached screenshot of Windows & mac for reference & let us know your observations.
Note:
1. Observed the same bahaviour on firefox, edge browsers
2. Observed black square box displayed in middle of yellow background rectangle on Mac 10.12.2-Canary#58.0.3018.0

Thanks!!


693834.png
45.2 KB View Download
693834-mac.png
62.8 KB View Download
Your windows repro appears to be missing the svg. Whether the browsers does (Firefox) or does not (Edge/Chrome) support object-fit properly, you should see black on the page. 

The correct behavior is that you shouldn't see any yellow, which is what you should get in Firefox.
Labels: -Needs-Feedback
Thank you for providing feedback. removing "Needs-Feedback" label.
Labels: -Needs-Triage-M58 M-58 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Mac 10.12.2, Windows 7,Windows-10 & Linux 14.04 using chrome stable#56.0.2924.87 and Canary#58.0.3027.0 with the steps mentioned in comment#0.
This is Non-regression issue, observed from earlier version of chrome M-30.0.1550.0.
Hence marking it as untriaged to get more inputs from dev team.
Issue not seen in other browser(Firefox).
Please find the attached screenshots for reference.

Thank you!!
chrome#M30-693834.PNG
9.3 KB View Download
Firfox-693834.PNG
28.3 KB View Download

Comment 7 by e...@chromium.org, Mar 5 2017

Components: -Blink>Layout Blink>SVG

Comment 8 by f...@opera.com, Mar 6 2017

Status: Available (was: Untriaged)
Labels: PaintTeamTriaged-20170306 BugSource-User
Project Member

Comment 10 by sheriffbot@chromium.org, Mar 7 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. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 11 by f...@opera.com, Mar 7 2018

Status: Available (was: Untriaged)

Comment 12 by f...@opera.com, Mar 7 2018

Labels: -Hotlist-Recharge-Cold

Sign in to add a comment