ImageDocument.css 923 B

1234567891011121314151617181920212223242526272829303132
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /*
  6. * This CSS stylesheet defines the rules to be applied to any ImageDocuments,
  7. * including those in frames.
  8. */
  9. @media not print {
  10. .overflowingVertical, .overflowingHorizontalOnly {
  11. cursor: zoom-out;
  12. }
  13. .shrinkToFit {
  14. cursor: zoom-in;
  15. }
  16. }
  17. @media print {
  18. /* We must declare the image as a block element. If we stay as
  19. an inline element, our parent LineBox will be inline too and
  20. ignore the available height during reflow.
  21. This is bad during printing, it means tall image frames won't know
  22. the size of the paper and cannot break into continuations along
  23. multiple pages. */
  24. img {
  25. display: block;
  26. }
  27. }