Skip to main content

‘Crazy’ Firefox and Opera CSS blasted

Mobile platform strategist Peter-Paul Koch has lashed out at Firefox and Opera, due to the browser vendors’ implementations of the CSS device-pixel-ratio media query. As noted on the W3 CSS WG Blog, the query was ‘invented’ by WebKit rather than using the standardised 'resolution', and largely through the success of iOS devices, it’s become a common inclusion in many web pages.

However, Mozilla and Opera have used alternative syntax, as in the following example, which Koch presented on his post:

-webkit-min-device-pixel-ratio: 1.5min-moz-device-pixel-ratio: 1.5-o-min-device-pixel-ratio: 3/2

Koch said this makes it far more difficult to write scripts to go through all the vendor prefixes. Previously, he has been a stern advocate of diverse platforms. In February, Koch argued developers focus on the iPhone too much, which was causing at least the perception of a WebKit browser monoculture, if not an actual one.

In Opera and Firefox not mirroring WebKit's lead in this particular slice of CSS, which follows the former company’s decision to use a small number of WebKit prefixes in its browser, Koch has seemingly been driven over the edge: “ENOUGH IS ENOUGH! I used to care a lot about diversity on the browser market, but I find myself slipping from that point of view. It’s just a fucking impossible system to maintain with fucking morons in charge of making up browser-specific CSS syntax.”

A Mozilla spokesperson dismissed the issue and told .net: "It's a mistake to read too much into vendor-prefixed rules. We remove prefixes from properties aggressively as soon as we're comfortable with their implementation, and this property is one that we intend to unprefix soon."

Opera had not returned .net’s request for comment at the time of publication.

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of six full-time members of staff: Editor Kerrie Hughes, Deputy Editor Rosie Hilder, Deals Editor Beren Neale, Senior News Editor Daniel Piper, Digital Arts and Design Editor Ian Dean, and Staff Writer Amelia Bamsey, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.