svg use elements referring to def elements scaled incorrectly when printing
Categories
(Core :: Printing: Output, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox90 | --- | fixed |
People
(Reporter: scheschonk, Assigned: emilio)
References
Details
Attachments
(6 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36
Steps to reproduce:
Opened the attached svg file, the arrangement looks as expected.
Actual results:
Upon view of the printing preview and the actual print the USE references elements to DEF elements of the svg are incorrectly scaled (maybe also positioned, hard to see). It looks like the scaling information imposed by the viewbox are ignored while printing, but correctly used in the display, when not printing
Expected results:
The SVG USE elements should be scaled in line with the other components when printing
This shows the printing preview and the incorrectly scaled def elements
Comment 3•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Toolkit::Printing' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Robert, do you happen to know where are these attributes hooked into rendering off the top of your head by any chance?
Assignee | ||
Comment 5•3 years ago
|
||
Ah, found it. SVGViewportElement::GetViewBoxTransform
is indeed returning wrong values in the print document, somehow.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
This ensures that the clone that printing does doesn't lose track of
them.
Assignee | ||
Comment 8•3 years ago
|
||
This could still be massively improved... Why the heck are we doing so
many virtual calls to parse an attribute? :(
Updated•3 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/62fcb8d1c124 Make the SVG attribute code a bit more generic. r=longsonr https://hg.mozilla.org/integration/autoland/rev/a470837de091 Copy internal attribute values from SVG elements for printing. r=longsonr
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/28673 for changes under testing/web-platform/tests
Comment 11•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/62fcb8d1c124
https://hg.mozilla.org/mozilla-central/rev/a470837de091
Upstream PR merged by moz-wptsync-bot
Description
•