New issue
Advanced search Search tips

Issue 677173 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 352912
Owner: ----
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: 2017-01-10
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

SVG <a> tag breaking fill property in inline SVG

Reported by myd...@gmail.com, Dec 27 2016

Issue description

Chrome Version (from the about:version page): 55.0.2883.87 (Official Build) (64-bit)
Is this the most recent version: yes
OS + version: Ubuntu 16.10
CPU architecture (32-bit / 64-bit): 64-bit
Window manager: Unity
Behavior in Linux Firefox: working as expected
Behavior in Windows Chrome (if you have access to it): working as expected

What steps will reproduce the problem?
(1) Create html file with inline svg with text.
(2) Enclose the text with <a> tag.
(3) In an external style sheet set the fill property of the svg to red.

What is the expected result?
The text is red.

What happens instead?
The text is black.

Please provide any additional information below. Attach a screenshot
and backtrace if possible.
Without the <a> tag everything is working as expected.
And if I write fill="inherit" in the <text> tag everything is working as expected too.
This is happening only in google chrome on linux, in other browsers on linux it is working as it should. In google chrome on windows it is working too without problems.

 
report.html
512 bytes View Download
styles.css
56 bytes View Download
Components: Blink>SVG
Labels: Needs-Feedback
NextAction: 2017-01-10
Are you using the same version of Chrome on Windows and Linux?

It does not repro for me on Mac M57 Canary.

Comment 2 by myd...@gmail.com, Dec 27 2016

yes, exactly the same version 55.0.2883.87

Comment 3 by f...@opera.com, Jan 2 2017

For the Windows vs. Linux comparison, had the URL https://www.google.com been visited in both of the browsers prior to the test being run?

Comment 4 by myd...@gmail.com, Jan 2 2017

I visited the site in both OS.
I thought the color is wrong, because the link was visited already, but it happens with any site, visited or not.

Comment 5 by f...@opera.com, Jan 2 2017

I cannot reproduce with "any site", only with once visited within the same browsing context. (When testing "any site", make doubly sure they are not visited - perhaps by using a made up domain name.)
Project Member

Comment 6 by sheriffbot@chromium.org, Jan 10 2017

Labels: -Needs-Feedback Needs-Review
Owner: schenney@chromium.org
Thank you for providing more feedback. Adding requester "schenney@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Owner: ----
Status: Available (was: Unconfirmed)
Marking available (confirmed) based on comment #5.
Labels: -Needs-Review

Comment 9 by myd...@gmail.com, Jan 13 2017

I tried it again with made up web pages names and it shows red as it should be.
But it is a color in a SVG element. I don't think chrome should change the color of an image when it is in a visited <a> link.

Comment 10 by myd...@gmail.com, Jan 13 2017

I found this issue, that seems to be the same as mine:
https://bugs.chromium.org/p/chromium/issues/detail?id=352912

Comment 11 by myd...@gmail.com, Jan 15 2017

I think, it is the same bug as in the link in comment #10. But they did write, they resolved it, but it is still here.

I made a fiddle from the files on top: https://jsfiddle.net/0vc6okxj/1/
Mergedinto: 352912
Status: Duplicate (was: Available)
It is indeed a duplicate.

Sign in to add a comment