Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <a href="http://www.w3.org/TR/2014/REC-html5-20141028/forms.html#the-select-element" rel="nofollow" title="The select element"><code>&lt;select&gt;</code></a> element is an <a href="http://www.w3.org/TR/2014/REC-html5-20141028/dom.html#interactive-content" rel="nofollow">interactive content</a> element in HTML5 and a <a href="http://www.w3.org/TR/html401/interact/forms.html#menu" rel="nofollow">menu</a> in HTML4.01. As such it is an object which requires user input and behaves like a right click context menu and is rendered above all document elements if active. Try it for yourself - open your contextmenu and hover over the navigation.</p> <p>This <em>bug</em> is connected to the behavior of other interactive content elements such as <code>video</code> (see also <a href="http://www.w3.org/TR/2014/REC-html5-20141028/rendering.html#the-select-element-0" rel="nofollow">HTML5 rendering</a>).</p> <p>The only way to prevent such behavior is to change the display property of an active select to <code>none</code> while hovering an interactive element. <code>visibility:hidden;</code> won't help since the options are still shown, and using <code>display:none;</code> on options will results in rendering errors.</p> <p><a href="http://jsfiddle.net/7PwEN/1/embedded/result/" rel="nofollow">Here is a small demonstration</a> of the technique described above:</p> <pre><code>.mynavbar:hover ~ * .selecthack &gt; select:focus .mynavbar:hover ~ .selecthack &gt; select:focus{ display:none; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload