[Webkit-unassigned] [Bug 137800] New: The event on <use> element are not dispatched when then the referenced element's style updated.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 16 19:07:39 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=137800
Bug ID: 137800
Summary: The event on <use> element are not dispatched when
then the referenced element's style updated.
Classification: Unclassified
Product: WebKit
Version: 525.x (Safari 3.2)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: liuler at cn.fujitsu.com
CC: zimmermann at kde.org
Created attachment 239989
--> https://bugs.webkit.org/attachment.cgi?id=239989&action=review
testcase
There is a <use> element references a <rect> element, the <use> element has a mousedown event and <rect> element has a mouseover event.
The mouseover event on <rect> element changes its own color. When the <rect> element's color changed, the mousedown event on <use> element
can't be fired.
<svg id="svg-root" width="100%" height="100%"
viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<defs>
<!-- SVGElementInstance animates fill on mouseover -->
<rect id="rect" width="50" height="50" fill="red"
onmouseover="document.getElementById('rect').setAttribute('fill','blue')"
onmouseout="document.getElementById('rect').setAttribute('fill','red')" />
</defs>
<use id="use3" fill="red" x="30" y="100" xlink:href="#rect"
onmousedown="document.getElementById('rect').setAttribute('stroke','black')"
onmouseup="document.getElementById('rect').setAttribute('stroke','none')"/>
</g>
</svg>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141017/fd490cc8/attachment-0002.html>
More information about the webkit-unassigned
mailing list