Firefox SVG shape not printing when it has stroke -
i having issue svg shapes have stroke , trying them print in firefox.
this simplest example:
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="0" y="0" rx="15" ry="15" width="300" height="400" style="stroke:black;stroke-width:5;" fill="black" /> <circle id="firstcircle" cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="white" style="opacity:0.75;"/> <circle id="secondcircle" cx="50" cy="150" r="30" fill="white" style="opacity:0.75;"/> </svg>
when try , print first shape 1 of 2 things:
- it not show @ all
- it shows off center in bounding box.
the second shape no stroke shows expected, expected.
when displaying on screen shows expected expected. issue olny arises when try , print.
i have tried different scale factors (50% - 100%) , default shrink fit.
here when try , print it:
is defined behavior or know how correct this?
i not in love stroke on shape , can layer shapes same effect, bt nice know why happeneing.
edit:
as robert longson pointed out appears firefox bug. report filed here , looking it.
you need specify width
, height
of svg
element fix this:
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="400"> <rect x="0" y="0" rx="15" ry="15" width="300" height="400" style="stroke:black;stroke-width:5;" fill="black" /> <circle id="firstcircle" cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="white" style="opacity:0.75;"/> <circle id="secondcircle" cx="50" cy="150" r="30" fill="white" style="opacity:0.75;"/> </svg>
Comments
Post a Comment