Open
Bug 325510
Opened 19 years ago
Updated 3 years ago
[OS X] SVG does not print, although it displays
Categories
(Core :: Printing: Output, defect)
Tracking
()
NEW
People
(Reporter: ryan, Unassigned)
References
()
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
SVG images receive their reserved space in print preview and printing, but the resulting space is blank. This occurs for SVG embeded with <object> tags, inline xhtml plus svg and image/svg+xml viewed alone.
Reproducible: Always
Steps to Reproduce:
1. Visit a page with SVG content
2. Print that page
Actual Results:
Page has a blank space where SVG content should be.
Expected Results:
Page should show SVG content
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 1•19 years ago
|
||
Opera, Safari-webkit and ie-asv all have print
is mozilla the only popular browser that doesn't print?
Comment 2•18 years ago
|
||
this appears fixed, please check nightlies
Updated•16 years ago
|
Assignee: printing → nobody
QA Contact: printing
Comment 3•7 years ago
|
||
it seems that plain SVG files are printed correctly now in FF 58.0.2, e.g.
https://upload.wikimedia.org/wikipedia/en/c/ce/SVG-logo.svg
but there is problem with embedded SVG in xHTML markup. SVG is printed, but in incorrect layout. I see NO reason for SVG image to be printed on the second paper page in this case...
Simplest testcase:
https://martin.byethost18.com/edc/bug-svg-print.xhtml
-
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
<title>SVG print bug</title>
<style>
html, body, div {
margin:0px;
padding:0px;
border:0px;
width:100%;
height:100%;
position:absolute;
}
#clip {
background:#777;
}
</style>
</head>
<body>
<div id="clip" class="">
Text inside XHTML
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svgViewer" x="0" y="0" width="100%" height="100%" viewBox="0 0 1800 1400" preserveAspectRatio="xMidYMid meet" overflow="visible">
<g id="g1" font-family="Trebuchet MS" transform="translate(0,0)">
<circle cx="840" cy="50%" r="688"/>
<text id="t1" x="840" y="50%" font-size="88" text-anchor="middle" fill="darkred">SVG graphic inside XHTML</text>
</g>
</svg>
</div>
</body>
</html>
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Probably will be best solution to close this bug as RESOLVED and create new bug report for print bug related to CSS position: absolute...
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•