Closed
Bug 348225
Opened 19 years ago
Closed 19 years ago
<svg:use> clips wrong
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: gunther.lenz, Unassigned)
References
Details
Attachments
(1 file)
744 bytes,
image/svg+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
when displaying a symbol that contains negative coordinates with the <use> tag, the the negative part is being clipped.
when loading the following svg-file you should see a circle and a x-shaped symbol.
FF displays just the lower right part of the symbol.
i've crosschecked it with the adobde 3.0 svg plugin for IE and also with inkscape.
--
svg-file use02a.svg:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="10cm" height="3cm" viewBox="0 0 100 30" version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<desc>Example Use02 - 'use' on a 'symbol'</desc>
<defs>
<symbol id="cross1">
<desc>crosshatch</desc>
<line x1="-5" y1="-5" x2="5" y2="5" stroke="red" stroke-width=".2" />
<line x1="-5" y1="5" x2="5" y2="-5" stroke="green" stroke-width=".2" />
<circle cx="0" cy="0" r="3" fill="yellow" stroke="brown" stroke-width="1" />
</symbol>
</defs>
<rect x=".1" y=".1" width="99.8" height="29.8"
fill="none" stroke="blue" stroke-width=".2" />
<use x="50" y="15"
xlink:href="#cross1" />
<line x1="50" y1="0" x2="50" y2="30" stroke="blue" stroke-width=".2" />
<line x1="0" y1="15" x2="100" y2="15" stroke="blue" stroke-width=".2" />
</svg>
Reproducible: Always
Steps to Reproduce:
1. save svg-content from above to file "svg02a.svg"
2. open file "svg02a.svg" in FF
3. only the lower right part of the symbol is displayed
Expected Results:
you should see the whole yellow disc with a brown circle as border and a red and a green line diagonally over the circle
Updated•19 years ago
|
Assignee: nobody → general
Component: General → SVG
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch
Updated•19 years ago
|
Summary: svg:use clips wrong → <svg:use> clips wrong
Pretty sure our behavior is per spec - generated child of <use> in this case is <svg x="50" y="15" width="100%" height="100%">. As this will use the implicit viewBox, the clip for this svg will then cut off anything that is drawn with negative coordinates, the other three quadrents of this testcase.
Both Opera and Batik agree with our interpretation of the specification.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•