Closed
Bug 290048
Opened 20 years ago
Closed 20 years ago
new bug to update <svg:use> attribute
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: gwendal.mousset, Assigned: tor)
References
Details
(Keywords: regression)
Attachments
(2 files)
|
1.60 KB,
text/xml
|
Details | |
|
2.00 KB,
patch
|
scootermorris
:
review+
asa
:
approval1.8b2+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050411 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050411 Firefox/1.0+
Hello,
I find a new bug with firefox 1.0+ rv:1.8b2 Gecko/20050411.
Reproducible: Always
Steps to Reproduce:
1.I've the following SVG code :
...
<rect width="105" height="10" x="365" y="0" style="stroke:#000;" id="rect1" />
<use x="-105" y="0" xlink:href="#rect1" style="fill-opacity:0.75" id="rect2" />
<use x="-210" y="0" xlink:href="#rect1" style="fill-opacity:0.50" id="rect3" />
<use x="-315" y="0" xlink:href="#rect1" style="fill-opacity:0.25" id="rect4" />
...
2. And I try to update an attribute value with javascript :
...
global_legende.getElementById("rect1").style.setProperty("fill", color, "") ;
...
3.
Actual Results:
The color change for the <rect> element, but not for the <use> elements.
Expected Results:
With a previous release (1.8b2 20050320) this code works perfectly.
Comment 1•20 years ago
|
||
*** Bug 290049 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Keywords: regression
Version: unspecified → Trunk
Comment 2•20 years ago
|
||
Could you post a testcase please.
Updated•20 years ago
|
Component: General → JavaScript Engine
Product: Firefox → Core
| Reporter | ||
Comment 3•20 years ago
|
||
(In reply to comment #2)
> Could you post a testcase please.
Yes, I realized a simple example :
http://gwendal.mousset.free.fr/svgTest/colorTest.xhtml
The result is different : color change but it's not correct yet. The new color
seems te be mixed with the older...
With my previous firefox release it works well.
| Reporter | ||
Comment 4•20 years ago
|
||
| Reporter | ||
Comment 5•20 years ago
|
||
(In reply to comment #4)
> Created an attachment (id=180560) [edit]
> testcase
>
Sorry, this link doesn't work... the svg isn't display. Maybe text/html is not
the appropriate content type for xhtml file with svg.
Download the file to test.
| Reporter | ||
Updated•20 years ago
|
Attachment #180560 -
Attachment mime type: text/html → text/xhtml
| Reporter | ||
Updated•20 years ago
|
Attachment #180560 -
Attachment mime type: text/xhtml → text/plain
| Reporter | ||
Updated•20 years ago
|
Attachment #180560 -
Attachment mime type: text/plain → text/xml
Comment 6•20 years ago
|
||
The test case does not work for me neither.
Updated•20 years ago
|
Assignee: firefox → general
Component: JavaScript Engine → SVG
*** Bug 290320 has been marked as a duplicate of this bug. ***
Remove nsSVGUseFrame::Init since we don't need to do anything special for <use>
and the current one doesn't call the base ::Init, which means we won't
eventually end up in nsFrame::Init to set the flag on the use content that it
has a frame.
Assignee: general → tor
Status: UNCONFIRMED → ASSIGNED
Attachment #181824 -
Flags: review?(scootermorris)
Updated•20 years ago
|
Attachment #181824 -
Flags: review?(scootermorris) → review+
Attachment #181824 -
Flags: approval1.8b2?
Comment 9•20 years ago
|
||
Comment on attachment 181824 [details] [diff] [review]
remove nsSVGUseFrame::Init
a=asa
Attachment #181824 -
Flags: approval1.8b2? → approval1.8b2+
| Assignee | ||
Comment 10•20 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 11•20 years ago
|
||
It works, thanks a lot ;)
You need to log in
before you can comment on or make changes to this bug.
Description
•