Akshay Prassanna
Akshay Prassanna

Reputation: 31

Why do we use the (min--moz-device-pixel-ratio:0) query for the selection of devices using Mozilla Browser?

I was working on a plugin and got a very basic question in mind, would be really grateful if someone can help me out with it. Why exactly do we use (min--moz-device-pixel-ratio:0) query and how does it differ from the other queries. How does it specifically select only the mozilla browser. Are there any alternatives that have appeared in the recent times?

Upvotes: 0

Views: 381

Answers (1)

ultradronson
ultradronson

Reputation: 31

Alternative targeting FF Mozilla FireFox:

@-moz-document url-prefix('') {body {background-color: red;}}

@document

Only supports an empty url-prefix() value, which is supported due to its use in Firefox browser detection. Still supported in user stylesheets.

Upvotes: 1

Related Questions