Closed Bug 1408735 Opened 7 years ago Closed 7 years ago

SVG <Use>-tag without width- and height-attributes behaviors different than before Firefox 56

Categories

(Firefox :: Untriaged, defect)

56 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1398806

People

(Reporter: sami.m.hyvonen, Unassigned)

Details

Attachments

(1 file)

Attached image UsesInSymbolsTest.svg
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20171002220106

Steps to reproduce:

See. Example of attached file.
1. A circle-element in symbol-elements "sym11" and "sym12" with viewBox.
2. A symbol-element "sym01" by use-tags of symbols sym11 and sym12 with explicit width and height attributes.
3. A symbol-element "sym02" by use-tags of symbols sym11 and sym12 without width and height attributes. (Implicit width and height)


Actual results:

Firefox 56 (at least on Windows) draws only parts of the "sym02" into viewBox. Seem like implicit width and height attributes of the "sym02" maybe related with width and height of the SVG-element. Changing width or height attributes of SVG-element scales "sym02" and defines what parts of the pictures shows in viewBox.


Expected results:

At least Firefox 52 (Debian 9), Chromium (52, Windows 10 / 61, Debian 9) and Edge 38 (Windows 10) draws identical pictures of the symbols "sym01" and "sym02". The implicit width and height attributes are related with the width and attributes of the use-element. Changing width and height attributes of the SVG-element doesn't scale "sym02".
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: