madeleineostoja / postcss-responsive-type

Automagical responsive typography, built on PostCSS
372 stars 21 forks source link

Fallback with media queries #12

Closed neysimoes closed 8 years ago

neysimoes commented 8 years ago

I did create a fallback to responsive type work in Android 4- and Opera Mobile. I need improve this code and add more features, but it's a idea to improve responsive type cross-browser. http://codepen.io/neysimoes/pen/GZqBYy

madeleineostoja commented 8 years ago

Cool idea, would be fairly easy to output a 3rd media query with a fixed size in the middle of the range. But then question is where do you stop? I mean, why not output a media query at every x pixels?

Since you can just provide your own static fallback font-size, and fluid type is generally a progressive enhancement rather than a must-have (and if it is a must-have you can polyfill), I'd be hesitant to include something like this in the default output.

neysimoes commented 8 years ago

We really need a new font size every x pixels? In fact we don't need this precision to create a responsive layout. Could you determinate a precision to output or determinate media-queries to change font-size.

madeleineostoja commented 8 years ago

Sorry, that's what I was getting at, that we shouldn't have a whole bunch of media queries throughout the range. If you want to support legacy browsers I think polyfills are the way to go, not extra media queries that all browsers get lugged with.