<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22569</bug_id>
          
          <creation_ts>2013-07-03 23:53:52 +0000</creation_ts>
          <short_desc>MouseEvent should have DOMString pseudoElement property like TransitionEvent</short_desc>
          <delta_ts>2015-10-06 22:49:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - UI Events</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliott Sprehn">esprehn</reporter>
          <assigned_to name="Gary Kacmarcik">garykac</assigned_to>
          <cc>bugs</cc>
    
    <cc>falken</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90304</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2013-07-03 23:53:52 +0000</bug_when>
    <thetext>Just like with TransitionEvent we should support pseudoElement on MouseEvent so when you click a ::before or ::after or ::backdrop the click event you get back tells you which pseudo element was clicked.

See: http://www.w3.org/TR/css3-transitions/

This is important for &lt;dialog&gt; since it&apos;s quite common to want to dismiss the dialog when the user clicks the ::backdrop but right now you can&apos;t know that without getting the bounding client rects of the &lt;dialog&gt; and then looking to see if the hit was inside there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90344</commentid>
    <comment_count>1</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2013-07-04 09:02:57 +0000</bug_when>
    <thetext>Sounds like a bug in &lt;dialog&gt; design if it is expected that event handling
explicitly needs to deal with pseudoElements all the time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90347</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Falkenhagen">falken</who>
    <bug_when>2013-07-04 12:29:31 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Sounds like a bug in &lt;dialog&gt; design if it is expected that event handling
&gt; explicitly needs to deal with pseudoElements all the time.

If it helps, this is just for modal &lt;dialog&gt; which has a ::backdrop for
optionally graying out the screen underneath it. It makes sense to me
that you can handle events on ::backdrop, so you can dismiss the dialog
or make it bounce for attention. But maybe there is a better design.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90637</commentid>
    <comment_count>3</comment_count>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2013-07-11 17:31:33 +0000</bug_when>
    <thetext>It seems totally reasonable to want to know if someone clicked the element or the ::before or ::after. Right now if I position the ::before absolutely somewhere else on the page I can&apos;t easily tell (without triggering an unnecessary layout by calling getBoundingClientRects()) if the click was in the ::before or inside element itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90639</commentid>
    <comment_count>4</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2013-07-11 18:14:40 +0000</bug_when>
    <thetext>This is a great suggestion. As it is a new feature request, I&apos;m moving it to the node for future DOM 3 Events features: UI Events.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123550</commentid>
    <comment_count>5</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2015-10-06 22:49:08 +0000</bug_when>
    <thetext>Now tracking as: https://github.com/w3c/uievents/issues/15</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>