Closed
Bug 313508
Opened 21 years ago
Closed 17 years ago
svg clip-path sometimes doesn't work
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: rharris, Unassigned)
References
()
Details
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051023 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051023 Firefox/1.5
The small example using clip paths shows odd results. More is clipped (or, at least, less is visible) than should be the case.
And yet, a larger example seems to work fine. To ses the example which works, go to http://rhel.cnchost.com/rh/madweave/test.svg and click on the 4 in the upper right (you might need to wait ten seconds or so, for it to display).
Reproducible: Always
Steps to Reproduce:
1. start a recent build
2 a. go to test-strips.svg, or
2 b. go to test.svg and click on the 1 or the 2 in the upper right.
Actual Results:
more is clipped (or, at least, less is visible) than should be the case.
Expected Results:
Use IE with the Adobe SVG viewer to see the expected results. Or, use test.svg, and click on the 4 in the upper right, so see a larget example of what should have been shown.
These eamples work correctly in IE, with Adobe's svg plugin.
| Reporter | ||
Updated•21 years ago
|
Version: Trunk → 1.8 Branch
When I try this example in solaris, I met a terrible performance problem. After the investigation, I found it is caused by cairo library. Shoul I file another bug on this?
| Reporter | ||
Comment 2•21 years ago
|
||
test.svg and madweave.svg do not perform well in any svg viewer once you have clicked on the "4" or the "6" in the upper right. I find large settings perform well enough well in Adobe's viewer and in Squiggle, if you are patient.
This might be because they use nested clip paths, each using clipping that is the inverse of a rectangle (in other words, a very large square with a rectangle cut out of it by an even-odd clip-rule). Loop at the source to test-strips.svg to see this. The maximum depth of the nesting of clip paths is four times the number in the upper right (which can be 1,2,4, or 6).
Comment 3•19 years ago
|
||
This is indeed a problem in Firefox 2, but it is no longer a problem in trunk builds (in other words this issue will be fixed in Firefox 3). Closing as worksforme.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
| Reporter | ||
Comment 4•18 years ago
|
||
The test case test-strips.svg works correctly in Firefox 3 beta 5 on Mac OS 10.5 Leopard, but does not work correctly in Firefox 3 beta 5 on Windows XP. Both machines have all the most recent OS patches.
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Comment 5•18 years ago
|
||
Looks OK to me on Windows XP. Could you post a screenshot of what you see as an attachment please?
| Reporter | ||
Comment 6•18 years ago
|
||
| Reporter | ||
Comment 7•18 years ago
|
||
| Reporter | ||
Comment 8•18 years ago
|
||
I found that by making the Firefox window slightly smaller or larger, the SVG will switch from correct to incorrect, and vice versa. I tested the same thing on the mac, and I do not see this effect there.
Updated•18 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: 1.8 Branch → Trunk
Updated•18 years ago
|
Flags: wanted1.9+
Comment 9•18 years ago
|
||
Updated•17 years ago
|
Assignee: general → nobody
QA Contact: ian → general
Comment 10•17 years ago
|
||
Seems to work OK now, at least on Firefox trunk.
Status: NEW → RESOLVED
Closed: 19 years ago → 17 years ago
Resolution: --- → WORKSFORME
Comment 11•10 years ago
|
||
Old bug - still relevant.
On a website where svg is generated on the fly, FF doenst clip things correctly.
However when you save the generated svg and show it in FF again, it will do everything fine.
Flags: needinfo?(ulima.ums)
Comment 12•10 years ago
|
||
ulima.ums. If there's a problem you need to raise a new bug rather than comment on an old, closed one. What you are describing is almost certainly a website error rather than a Firefox error though.
Flags: needinfo?(ulima.ums)
You need to log in
before you can comment on or make changes to this bug.
Description
•