Closed Bug 290830 Opened 20 years ago Closed 20 years ago

SVG: pointer-events:none; not working since a week

Categories

(Core :: SVG, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: kohl, Assigned: tor)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050417
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050417

since about a week, SVG builds ...
SVG object with style pointer-events:none; is accepting (and eating up) pointer
events

the old builds 2005040309 and 2005031609 are working as expected,
new builds including 2005041709 are sending pointer events even to SVG objects
with style="pointer-events:none;"

Reproducible: Always

Steps to Reproduce:
1.load example
2.click at the black circle
3.

Actual Results:  
alert box with "blackCircle"

Expected Results:  
depending on click point alert box with "redCircle" or no alert box

essential for my source - I've to use an old version
An example source for the case I'm unable to contact a second time: 

<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <head>
	
	<script>
	  <![CDATA[
	  function init()
	  {
	    circle = document.getElementById('group');
	    circle.addEventListener("click", mouseclick_listener, false);
	  }	    

	  function mouseclick_listener(evt)
	  {
	    alert(evt.target.id);
	  }

	  ]]>
	</script>
  </head>
  <body onload="init();">
	<h1>Click on the BLACK circle over the red circle and</h1>

      <h3>the RED circle should shout "redCircle!"</h3>
      <h3>the BLACK circle should be completely quiet</h3>
	<svg:svg width="600px" height="400px">
	  <svg:g id="group">
		<svg:circle id="redCircle" r="1cm" cx="7cm" cy="3cm" style="fill: red;"/>
            <svg:circle id="blackCircle" r="1cm" cx="7.5cm" cy="3.5cm"
style="pointer-events:none;"/>

	  </svg:g>

	</svg:svg>
  </body>
</html>
Attached file simple example
Assignee: general → general
Component: General → SVG
Product: Mozilla Application Suite → Core
QA Contact: general → ian
Version: unspecified → Trunk
Attached patch oopsSplinter Review
Assignee: general → tor
Status: UNCONFIRMED → ASSIGNED
Attachment #181077 - Flags: superreview?(dbaron)
Attachment #181077 - Flags: review?(dbaron)
Attachment #181077 - Flags: approval1.8b2?
Attachment #181077 - Flags: superreview?(dbaron)
Attachment #181077 - Flags: superreview+
Attachment #181077 - Flags: review?(dbaron)
Attachment #181077 - Flags: review+
Attachment #181077 - Flags: approval1.8b2?
Attachment #181077 - Flags: approval1.8b2+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
*** Bug 290452 has been marked as a duplicate of this bug. ***
its not really encouraging to look for dublicates before posting , when you get
marked as dublicate of a newer bug, 
but anyways thanks for fixing.
(In reply to comment #5)
> its not really encouraging to look for dublicates before posting , when you get
> marked as dublicate of a newer bug, 
> but anyways thanks for fixing.

Please, don't be discouraged - in this case, the error was seen more early
looking at my message, I luckily found a good example, which was showing the
error more clearly than I had seen it before (if I had seen the duplicate, I'd
of course made no error message but maybe an addition to your message; sometimes
a duplicate is seen easily, but only after correcting  the other error message)
Nice to see other people sending error messages for the same field of interest!
> Please, don't be discouraged 
i just had a bad day yesterday, sorry for bothering...
> Nice to see other people sending error messages for the same field of interest!
yes indeed ; its good to see others testing mozillas SVG features.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: