- I hope you are able to comprehend the impact this has on the way in which we:Design for the web.Implement user interfaces.Fight against content-display limitations.Fight against limitation regarding animations.Work harder to make things look similar-ish on the large variety of browsers and devices we consume today.Why?Despite what some believe, fonts are not static down to better design implementations or because it works better for Responsive Design, I believe the decision is largely due to backwards compatibility, and rightfully so.Yea but what about SVG and the Canvas API?Good point imaginary reader…Unfortunately SVG cannot wrap fonts at the time of this article.Canvas lacks SEO and accessibility.WebGL in many cases can be overkill and lacks SEO and accessibility.With all that said, all three technologies are way under utilise in modern web development.
- At some point we need to realise that we can do more with less complications.I don’t get it(huff) If font-size can scale proportionately to the width of the viewport consistently across all modern browsers IE9+ without breaking zoom accessibility, design constraints will be significantly reduced.But you still need media queries?Yes but you’re not getting it, it’s more predictable this way.
- Less than 2.5kb gzipped, ES, CJS and UMD and only has the features it needs.BTW, I have to give thanks to Browserstack for providing cross-browser support.Now let me tell you what it does…MIMETIC scales relative font units to the viewport, without breaking the browser’s zoom and it detects the zoom level for all browsers IE9+.
- That’s it!You can improve accessibility on zoom or even let the user know they are viewing the browser in zoom.It’ supports:IE9+Safari 6.2+Every other modern browser, tablet, mobile etc.When you use MIMETIC, the rules change.
- You have to worry less about container widths and CSS caveats and more about proportions, more like a print designer.How?There are a few things I discovered to make this library possible:Changing the root font-size only and only relying on relative units.Calculating and normalising the devicePixelRatio from the user’s client device widths even when the DPR it’s not available or not behaving as expected.Differentiating between the window resize and zoom by knowing if the devicePixelRatio changed last or not.Calculating the defautDevicePixelRatio.Fire on orientation change.IE logicalXDPI deviceXDPI values.Keep it simple: Option to use viewport units for mobile (Doesn’t break zoom on mobile)False hopeThe scariest discovery is that there was nothing stopping a viable solution being made several years ago, all the way since IE6.
Responsive Design has been a great breakthrough for modern web development. But I couldn’t help but notice that something is lacking in our expectations regarding the aesthetics of web user…
Continue reading “Scalable Design: Beyond Responsive Design – Julien Etienne – Medium”