<?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>28700</bug_id>
          
          <creation_ts>2015-05-26 15:11:50 +0000</creation_ts>
          <short_desc>Labeled element should not match :hover or :active when the label&apos;s activation behavior is &quot;do nothing&quot;</short_desc>
          <delta_ts>2016-04-27 23:07:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</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="Tooru Fujisawa">arai.unmht</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>travil</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>120476</commentid>
    <comment_count>0</comment_count>
      <attachid>1602</attachid>
    <who name="Tooru Fujisawa">arai.unmht</who>
    <bug_when>2015-05-26 15:11:50 +0000</bug_when>
    <thetext>Created attachment 1602
demo for labeled target with :hover and :active

Originally reported here:
  https://bugzilla.mozilla.org/show_bug.cgi?id=1167816
  https://bugzilla.mozilla.org/show_bug.cgi?id=1167862

In the attached demo, what the spec says is that hovering/clicking the &quot;Click here&quot; should change the checkbox&apos;s style (:hover and :active), but the checkbox shouldn&apos;t be checked/unchecked by clicking it.  This is confusing.

https://html.spec.whatwg.org/multipage/scripting.html#selector-active
&gt; If the element is the labeled control of a label element that is currently matching :active
&gt;   The element is being activated.

Labeled control should be activated only if the label&apos;s activation behavior is not &quot;do nothing&quot;, since the element won&apos;t be actually activated on click.

https://html.spec.whatwg.org/multipage/scripting.html#selector-hover
&gt; An element that is the labeled control of a label element that is currently
&gt; matching :hover.

This should also be restricted to &apos;only if the activation behavior is not &quot;do nothing&quot;&apos;.

&gt; Consider in particular a fragment such as:
&gt; 
&gt; &lt;p&gt; &lt;label for=c&gt; &lt;input id=a&gt; &lt;/label&gt; &lt;span id=b&gt; &lt;input id=c&gt; &lt;/span&gt; &lt;/p&gt;
&gt; 
&gt; If the user designates the element with ID &quot;a&quot; with their pointing device,
&gt; then the p element (and all its ancestors not shown in the snippet above),
&gt; the label element, the element with ID &quot;a&quot;, and the element with ID &quot;c&quot; will
&gt; match the :hover pseudo-class. The element with ID &quot;a&quot; matches it from
&gt; condition 1, the label and p elements match it because of condition 2 (one of
&gt; their descendants is designated), and the element with ID &quot;c&quot; matches it
&gt; through condition 3 (its label element matches :hover). However, the element
&gt; with ID &quot;b&quot; does not match :hover: its descendant is not designated, even
&gt; though it matches :hover.

Here, ID &quot;c&quot; shouldn&apos;t match :hover.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126243</commentid>
    <comment_count>1</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2016-04-27 23:07:20 +0000</bug_when>
    <thetext>HTML5.1 Bugzilla Bug Triage: Moved to Github issue: https://github.com/w3c/html/issues/293

To file additional issues please use the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1602</attachid>
            <date>2015-05-26 15:11:50 +0000</date>
            <delta_ts>2015-05-26 15:11:50 +0000</delta_ts>
            <desc>demo for labeled target with :hover and :active</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>380</size>
            <attacher name="Tooru Fujisawa">arai.unmht</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGlkPSJIIj4KICA8aGVhZD4KICAgIDxtZXRhIGNoYXJzZXQ9
IlVURi04Ii8+CiAgICA8dGl0bGU+bGFiZWxlZCBlbGVtZW50IDpob3Zlci86YWN0aXZlIHRlc3Q8
L3RpdGxlPgogICAgPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KI2E6aG92ZXIgewogIG91dGxpbmU6
IDFweCBzb2xpZCByZWQ7Cn0KI2E6YWN0aXZlIHsKICBvdXRsaW5lOiAycHggc29saWQgcmVkOwp9
CiAgICA8L3N0eWxlPgogIDwvaGVhZD4KICA8Ym9keT4KICAgIDxsYWJlbCBmb3I9ImEiPgogICAg
ICA8YSBocmVmPSIjIj5DbGljayBoZXJlPC9hPgogICAgPC9sYWJlbD4KICAgIDxpbnB1dCBpZD0i
YSIgdHlwZT0iY2hlY2tib3giPgogIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>