Opera device pixel ratio #43

ademey opened this Issue Feb 21, 2013 · 2 comments


None yet
3 participants

ademey commented Feb 21, 2013

The fraction used in a Opera device pixel ratio query will cause an issue. The following example:

  @media print,
         (-o-min-device-pixel-ratio: 5/4),
         (-webkit-min-device-pixel-ratio: 1.25),
         (min-resolution: 120dpi) {
      /* Style adjustments for high resolution devices */

  @media print {
      * {
          background: transparent !important;
          color: #000 !important; /* Black prints faster: h5bp.com/s */
          box-shadow: none !important;
          text-shadow: none !important;


@media print,(-o-min-device-pixel-ratio:5/@media print{*{background:transparent!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}}

Using a decimal instead of a fraction fixes but Opera requires a fraction. I tested with version 2.4.7 and 2.4.8pre as part of ant-build-script.

For some color, this issue is a problem with the default HTML5 Boilerplate + Ant Build Script so it's actually got a decent spread. I'm going to try to figure out a way to work around it, but I'm not sure what I can do with the above note.


tml commented Jul 3, 2013

Merged in 2.4.8

tml closed this Jul 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment