midori-browser / core

Midori Web Browser - a lightweight, fast and free web browser using WebKit and GTK+
https://www.midori-browser.org/
GNU Lesser General Public License v2.1
396 stars 66 forks source link

"pointer: coarse" media query is true on desktop #327

Open dmbaturin opened 5 years ago

dmbaturin commented 5 years ago

While testing my website in Midori 7.0 on Linux, I noticed that it reports its pointer as coarse. This shouldn't happen on platforms with an accurate pointing device, since it will expose users to layouts made with limitations of coarse pointing devices such as capacitive touchscreens in mind.

A self-contained test page:

<!DOCTYPE html>
<html>
  <head>
    <style>
      .fine { display: inline; }
      .coarse { display: none; }

      @media (pointer: coarse)
      {
        .fine { display: none; }
        .coarse { display: inline; }
      }
    </style>
  </head>
  <body>
    <p class="fine">Your pointer is fine.</p>
    <p class="coarse">Your pointer is coarse.</p>
  </body>
</html>
kalikiana commented 5 years ago

This is probably a WebKit bug. Midori doesn't implement anything here as far as I'm aware.