Bug 1428753: Ensure that vertical-overflowing images always show the zoom-out cursor. r=heycam
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 12 Apr 2018 20:48:02 +0200
changeset 413121 260e4c83c8a91313595b26a830963b927d2ad29d
parent 413120 484a538efb4950f2dce09ad389432deddf62d8ea
child 413142 cf543bdd424f24f5320d6284c19cb5c51eda054a
child 413144 3d4f1ba7880cfee0037acfd5e55f769f485f1657
push id33833
push useraiakab@mozilla.com
push dateFri, 13 Apr 2018 09:41:15 +0000
treeherdermozilla-central@260e4c83c8a9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1428753
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1428753: Ensure that vertical-overflowing images always show the zoom-out cursor. r=heycam MozReview-Commit-ID: HU7f39pFNV8
layout/style/ImageDocument.css
--- a/layout/style/ImageDocument.css
+++ b/layout/style/ImageDocument.css
@@ -4,23 +4,23 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /*
  * This CSS stylesheet defines the rules to be applied to any ImageDocuments,
  * including those in frames.
 */
 
 @media not print {
+  .shrinkToFit {
+    cursor: zoom-in;
+  }
+
   .overflowingVertical, .overflowingHorizontalOnly {
     cursor: zoom-out;
   }
-
-  .shrinkToFit {
-    cursor: zoom-in;
-  }
 }
 
 @media print {
   /* We must declare the image as a block element. If we stay as
   an inline element, our parent LineBox will be inline too and
   ignore the available height during reflow.
   This is bad during printing, it means tall image frames won't know
   the size of the paper and cannot break into continuations along