Giter VIP home page Giter VIP logo

Comments (3)

kaelig avatar kaelig commented on June 8, 2024

Thanks for using sass-mq! The final resolution for this issue can be found here: #65 (comment)

from sass-mq.

seothemes avatar seothemes commented on June 8, 2024

Yes but also see https://adamwathan.me/dont-use-em-for-media-queries/

The tests in the blog post you referenced were incorrect, therefor pixels are still the best option.

Why not support both? Would you accept a PR?

from sass-mq.

kaelig avatar kaelig commented on June 8, 2024

The tests in the blog post you referenced were incorrect

How so? The author of https://zellwk.com/blog/media-query-units/ does mention Safari doesn't handle zoom + em media queries correctly and still comes to the conclusion that em-based media queries are the most sensible choice.

Edit: I see what you mean – his conclusions on px-based media query handling by Safari are misleading. However this doesn't change the fact that px-based media queries are bad for accessibility.

Sass MQ is an opinionated library that goes in the sense of enabling accessibility, not hindering it. Hopefully Safari fixes their implementation! There is a bug open here: https://bugs.webkit.org/show_bug.cgi?id=156687 – feel free to get in touch with the WebKit folks to try to get the work prioritized.

In the mean time, if you really need pixel-based media queries I'd encourage you to use this fork: https://github.com/flea89/sass-mq

from sass-mq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.