W3C home > Mailing lists > Public > www-svg@w3.org > January 2005

Mouseover/mouseout event stopping over shadow scopes in sXBL

From: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Date: Thu, 20 Jan 2005 15:58:25 +1100
To: www-svg@w3.org
Message-ID: <20050120045825.GC26730@port.mcc.id.au>

Say you had this document:

  <svg ...>
    <xbl:xbl>
      <xbl:definition element="ex:test1">
        <xbl:template>
	  <rect width="100" height="100"/>
	  <ex:test2/>
	</xbl:template>
      </xbl:definition>
      <xbl:definition element="ex:test2">
        <xbl:template>
	  <circle cx="100" cy="100" r="50"/>
	</xbl:template>
      </xbl:definition>
    </xbl:xbl>

    <ex:test1/>
  </svg>

and the mouse was moved from over the circle to over the rect.
Would I be right in guessing that these are the events that should be
fired?

  phase		type		target		currentTarget

  CAPTURING	mouseout	ex:test2	ex:test1
  CAPTURING	mouseout	circle		ex:test2
  AT_TARGET	mouseout	circle		circle
  BUBBLING	mouseout	circle		ex:test2
  BUBBLING	mouseout	ex:test2	ex:test1
  CAPTURING	mouseover	rect		ex:test1
  AT_TARGET	mouseover	rect		rect
  BUBBLING	mouseover	rect		ex:test1

The text in section 5.4 only talks about moving from one shadow tree to
another, but I imagine the behaviour in the table above is what you
want, too.  I think the text should mention what happens if one of
the two shadow scopes involved is below the other.

Cameron

-- 
Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922
Received on Thursday, 20 January 2005 04:58:31 GMT

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