Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome opacity issue with Chrome on mac #201

Open
optima-ben opened this issue Nov 7, 2016 · 1 comment
Open

Chrome opacity issue with Chrome on mac #201

optima-ben opened this issue Nov 7, 2016 · 1 comment

Comments

@optima-ben
Copy link

I'm getting inconsistent opacity with video when used as a background image in Chrome on Mac's. They are much more faint on the mac. Anyone else getting this?

@optima-ben
Copy link
Author

In response to this I've implemented temporary fix, firstly use the following to apply a .mac or .pc class to the body:

if (navigator.userAgent.indexOf('Mac OS X') != -1) {
  $("body").addClass("mac");
} else {
  $("body").addClass("pc");
}

and then target this with a chrome only media query.

@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
    #home.mac selector {
        opacity: 0.3;
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant