Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/mq4-hover-shim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <github@rebertia.com>2015-01-01 18:34:12 +0300
committerChris Rebert <github@rebertia.com>2015-01-01 18:34:12 +0300
commita358da4a4d95d0045d4921926c7161c8f0f3329e (patch)
treee4b4554136b7caf494e4e6ae3c4b66307a90e4cf /README.md
parent5b38a7780869c41058753a64a633de0a29869ce5 (diff)
document MS Surface Pro edge case; closes #2
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5df2b83..fdb8ef8 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,8 @@ Officially supported:
* 10 - True positive
* 9 - True positive
* 8 - True positive
+ * Touchscreen with mouse (like the MS Surface Pro)
+ * 11 - Arguable true negative
* Mobile 11
* Mobile mode - ???
* Desktop mode - ???
@@ -90,6 +92,7 @@ The module exports one public function:
* Return type: `boolean`
* Returns a `boolean` value indicating if the browser's primary pointer supports true hovering or if the browser at least does not try to quirkily emulate hovering, such that [`:hover`](hover-pseudo) CSS styles are appropriate.
* In other words, returns `true` if `@media (hover: hover)` would evaluate to `true` were the browser to natively correctly implement Media Queries Level 4; otherwise, returns `false`.
+ * If the browser does not natively support the `hover` media feature, but does support touch via some pointer input device, then we define this touch-based pointer to be the "primary pointer". Hence, if said browser has multiple pointer input devices, one supporting touch and another supporting true hovering (e.g. the computer has both a mouse and a touchscreen), this function will return `false`, since the user could use the touch input device at any time and since `:hover` should only be used for progressive enhancement anyway.
## Grunt
Use [grunt-postcss](https://github.com/nDmitry/grunt-postcss) to invoke the mq4-hover-hover-shim CSS postprocessor via [Grunt](http://gruntjs.com/) task.