WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
137800
The event on <use> element are not dispatched when the referenced element's style updated.
https://bugs.webkit.org/show_bug.cgi?id=137800
Summary
The event on <use> element are not dispatched when the referenced element's ...
Liu Lei
Reported
2014-10-16 19:07:39 PDT
Created
attachment 239989
[details]
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>
Attachments
testcase
(794 bytes, image/svg+xml)
2014-10-16 19:07 PDT
,
Liu Lei
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2022-07-15 17:01:07 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug