W3C home > Mailing lists > Public > www-svg@w3.org > August 2010

Should the base svg tag receive events? (testcase-corrected)

From: Kevin Ar18 <kevinar18@hotmail.com>
Date: Mon, 16 Aug 2010 23:03:44 -0400
Message-ID: <SNT110-W3366F569DCC8B43BA2013DAA9C0@phx.gbl>
To: <www-svg@w3.org>

Sorry, the code had a bug when I tried to merge it.  I'll just send it like I have it on my system.
 
The following attachment works.
 
Opera passes all tests
Firefox (obviously) fails
IE9? Anyone?
 
You click on the 3 grey circles and read the results.
 
 
 
 

 


From: kevinar18@hotmail.com
CC: www-svg@w3.org
Date: Mon, 16 Aug 2010 17:44:57 -0400
Subject: RE: Should the base svg tag receive events? (testcase)
To: www-svg@w3.org




I did some work on a testcase that maybe covers some of the basics.
 
It only deals with svg in html pages right now.
There are 3 circles that you click on to run the tests in a browser.
 
 
 
 
Some info based on my understanding
 
THE SVG tag
A good way to think about it is an SVG tag is like an div with visibility=none.  Just like an invisible div tag, the svg tag can affect flow in an html page.  Just like an invisible div tag, the actual svg tag renders nothing onto the screen.  Just like an invisible div tag, you can't interact with an svg tag itself (trigger events, context menu, etc...) because nothing is rendered to the screen.
The only difference is that the childen of the svg tag can render themselves to the screen.
 
EVENT TRIGGERS
Within the SVG namespace, for an SVG element (g, rect, etc...)  to be the trigger of an event (the event target), it must exhibit 2 properties:
 
(1) It must be graphical and render to the screen  (Only these elments qualify: http://www.w3.org/TR/SVG11/intro.html#TermGraphicsElement)
(2) It must not have pointer-events set to none
 		 	   		  


Received on Tuesday, 17 August 2010 03:04:18 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:45 GMT