<?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>28143</bug_id>
          
          <creation_ts>2015-03-05 06:45:24 +0000</creation_ts>
          <short_desc>An option&apos;s visibility can be different from the enclosing select visibility</short_desc>
          <delta_ts>2016-09-19 16:29:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexei Barantsev">barancev</reporter>
          <assigned_to name="Browser Testing and Tools WG">public-browser-tools-testing</assigned_to>
          <cc>johnjan</cc>
    
    <cc>luke.semerau</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118343</commentid>
    <comment_count>0</comment_count>
    <who name="Alexei Barantsev">barancev</who>
    <bug_when>2015-03-05 06:45:24 +0000</bug_when>
    <thetext>&quot;OPTIONs and OPTGROUP elements must be displayed if and only if the enclosing select element is displayed.&quot;

An option&apos;s visibility can be different from the enclosing select visibility.

1. http://jsfiddle.net/d26xvdpt/ -- an invisible select that contains visible options.

2. http://jsfiddle.net/atpqa5fw/ -- a visible select with invisible options.

a) &lt;option value=&quot;hidden&quot; style=&quot;visibility:hidden&quot;&gt;Hidden option&lt;/option&gt;
Such an option has no visible text but it is present in the dropdown.
It can be selected in Chrome and IE but it cannot be selected in Firefox.

b) &lt;option value=&quot;invisible&quot; style=&quot;display:none&quot;&gt;Invisible option&lt;/option&gt;
Such an option is not present in the dropdown in Chrome and Firefox, but it is present and visible (and selectable) in IE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118362</commentid>
    <comment_count>1</comment_count>
    <who name="Luke Inman-Semerau">luke.semerau</who>
    <bug_when>2015-03-05 16:48:30 +0000</bug_when>
    <thetext>the second example, in chrome at least, doesn&apos;t affect the visibility of the element. I only saw Firefox respect the display:none. So is that a HTML spec bug?

Opacity set to 0 is a dirty trick that we don&apos;t allow with other elements either. Yes the user can interact with it, but no, it&apos;s not displayed. The options (after selecting) are still not displayed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>