From 2e20e67dc1f1923ee144c5588ab0f686e4bdd130 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 20 Jan 2015 19:22:20 -0800 Subject: [PATCH] Document sticky :hover on mobile browsers; fixes #12832 --- docs/_includes/getting-started/browser-device-support.html | 3 +++ docs/_includes/nav/getting-started.html | 1 + 2 files changed, 4 insertions(+) diff --git a/docs/_includes/getting-started/browser-device-support.html b/docs/_includes/getting-started/browser-device-support.html index b5a2d892d2..b27099aa60 100644 --- a/docs/_includes/getting-started/browser-device-support.html +++ b/docs/_includes/getting-started/browser-device-support.html @@ -164,6 +164,9 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {

Browser zooming

Page zooming inevitably presents rendering artifacts in some components, both in Bootstrap and the rest of the web. Depending on the issue, we may be able to fix it (search first and then open an issue if need be). However, we tend to ignore these as they often have no direct solution other than hacky workarounds.

+

Sticky :hover/:focus on mobile

+

Even though real hovering isn't possible on most touchscreens, most mobile browsers emulate hovering support and make :hover "sticky". In other words, :hover styles start applying after tapping an element and only stop applying after the user taps some other element. This can cause Bootstrap's :hover states to become unwantedly "stuck" on such browsers. Some mobile browsers also make :focus similarly sticky. There is currently no simple workaround for these issues other than removing such styles entirely.

+

Printing

Even in some modern browsers, printing can be quirky.

In particular, as of Chrome v32 and regardless of margin settings, Chrome uses a viewport width significantly narrower than the physical paper size when resolving media queries while printing a webpage. This can result in Bootstrap's extra-small grid being unexpectedly activated when printing. See #12078 for some details. Suggested workarounds:

diff --git a/docs/_includes/nav/getting-started.html b/docs/_includes/nav/getting-started.html index b06dcce9b2..4a07fe79c7 100644 --- a/docs/_includes/nav/getting-started.html +++ b/docs/_includes/nav/getting-started.html @@ -56,6 +56,7 @@
  • Safari percent rounding
  • Modals, navbars, and virtual keyboards
  • Browser zooming
  • +
  • Sticky :hover/:focus on mobile
  • Printing
  • Android stock browser
  • Validators