Browser action icon can't understand style="vector-effect: non-scaling-stroke;"
Categories
(WebExtensions :: General, defect)
Tracking
(firefox109 affected, firefox110 affected, firefox111 affected)
People
(Reporter: gayali.rohit, Unassigned)
Details
Attachments
(5 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Steps to reproduce:
I created an SVG icon that used style="vector-effect: non-scaling-stroke;"
and used it in the browser action icon and a context menu icon.
Actual results:
The stroke of the icon is improperly scaed
Expected results:
The icon's stroke should have appeared like normally. When you open the SVG picture using Firefox, it looks normal. In the toolbar, it appears to be disformed.
Seemed to be a general problem 10 years ago
The zip file is a file to be loaded as a temporary add-on to see the problem
Comment 1•2 years ago
|
||
Maybe you could attach screenshots of how it looks on Firefox and Chrome.
You don't have any patterns in your icon so it can't be bug 858317
Reporter | ||
Comment 2•2 years ago
|
||
Added a screenshot of the SVG icon.
The icon with style="vector-effect: non-scaling-stroke;"
is the icon on the right, and the icon without that style is on the left.
Reporter | ||
Updated•2 years ago
|
Comment 3•2 years ago
|
||
OK, what does it look like on Chrome?
Comment 4•2 years ago
|
||
Hello,
I reproduced the issue on the latest Nightly (111.0a1/20230209041032), Beta (110.0/20230206190557) and Release (109.0.1/20230127170202) under Windows 10 x64 and macOS 11.3.1.
On Windows, the icon’s stroke appears more pronounced than on macOS, though both OSes manifest this issue nevertheless.
Comment 5•2 years ago
|
||
Comment 6•2 years ago
|
||
Comment 7•2 years ago
|
||
Alex, you mean it looks different to Chrome's rendering of this icon? Assuming Chrome renders it at the same size as Firefox. If so would you mind attaching a screenshot of that so we can compare.
The effect is a non-scaling stroke so if the icon is displayed quite small then the stroke will seem quite large because it won't be scaled down. I'm not convinced there is any bug here.
Reporter | ||
Comment 8•2 years ago
|
||
(In reply to Robert Longson [:longsonr] from comment #3)
OK, what does it look like on Chrome?
Chrome does not support SVG icons
Reporter | ||
Comment 9•2 years ago
|
||
(In reply to Robert Longson [:longsonr] from comment #7)
Alex, you mean it looks different to Chrome's rendering of this icon? Assuming Chrome renders it at the same size as Firefox. If so would you mind attaching a screenshot of that so we can compare.
The effect is a non-scaling stroke so if the icon is displayed quite small then the stroke will seem quite large because it won't be scaled down. I'm not convinced there is any bug here.
I must have misunderstood non-scaling-stroke
. My assumption was that the stroke would still be scaled down during render time.
Comment 10•2 years ago
|
||
Hello Robert,
I loaded the extension in Chrome and it appears Comment 8 is correct. Chrome does not support SVG icons so the extension icon displayed on the toolbar is the default puzzle icon.
See the attached screenshot.
Comment 11•2 years ago
|
||
Description
•