title: CSS :hover/:focus vs click event on (mobile) touch devices
body: <p>Often I am in situations where I need to show a menu on hover and for mobile devices menu should open on click. Now e.g. consider following example:  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.btn {
    width: 200px;
    background-color: #333;
    color: white;
    padding: 10px;
  }
  .menu {
    display: none;
    padding: 15px;
  }
  .btn:hover .menu {
    display: block;
  }
  .btn:focus .menu {
    display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="btn"&gt;
    Button
    &lt;div class="menu"&gt;I am menu&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now this automatically works on mobile devices because hover state is sticky on touch devices. But is this hack applicable to all touch devices? That is, is it worth the risk? Would there be some touch device doesn't have hover state sticky? Obviously the alternative is to assign touch/click events with JavaScript on touch devices but this seem redundant because I haven't seen any touch device which don't have sticky hover states?</p>
  
  <p>So my question is:</p>
  
  <p>Is it okay to use the hover state hack or should I use JavaScript events to make it more bullet proof? </p>