layout/style/ImageDocument.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/style/ImageDocument.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/*
    1.10 + * This CSS stylesheet defines the rules to be applied to any ImageDocuments,
    1.11 + * including those in frames.
    1.12 +*/
    1.13 +
    1.14 +@media not print {
    1.15 +  .overflowing {
    1.16 +    cursor: zoom-out;
    1.17 +  }
    1.18 +
    1.19 +  .shrinkToFit {
    1.20 +    cursor: zoom-in;
    1.21 +  }
    1.22 +}
    1.23 +
    1.24 +@media print {
    1.25 +  /* We must declare the image as a block element. If we stay as
    1.26 +  an inline element, our parent LineBox will be inline too and
    1.27 +  ignore the available height during reflow.
    1.28 +  This is bad during printing, it means tall image frames won't know
    1.29 +  the size of the paper and cannot break into continuations along
    1.30 +  multiple pages. */
    1.31 +  img {
    1.32 +    display: block;
    1.33 +  }
    1.34 +}

mercurial