Commit 1155c6e9 authored by Oskar Kalbag's avatar Oskar Kalbag

Updated the readme

parent 5159e701
......@@ -25,7 +25,7 @@ Thankfully, rems (root ems) make things much easier by basing their values off o
However, they are not supported on older browsers. Which is why, you should provide pixel fallbacks when you are using them.
Also, since the base font size is 16px by default in browsers, you still have to do some math. That’s not ideal.
Also, since the base font size is 16px by default in browsers, you still have to do some math (specifically, you need to divide values in pixels by 16 to arrive at values in rems). That’s not ideal.
Enter pixel‐parity rems
---
......@@ -34,7 +34,7 @@ Think about it: what would happen if you set the root font size to 1px? You’d
This is exactly what Chris Jacob suggested in [his Elastic Pixels gist](http://jsbin.com/acide4/8). And I started doing just that. And life was good. For a while.
Unfortunately, not all browsers let you set the root font size to 1px. This is a bug, not a feature. On some browsers it erroneously conflicts with the minimum font size setting in the accessibility settings (even if the actual font sizes of your elements are all larger than it). This results in your elements rendering in horrendously large proportions. And some browsers  especially some console browsers (thank‐you, [Anna Debenham](http://maban.co.uk), for letting my test with your toys)  appear to completely ignore any change to the root font size. Gotta love browsers.
Unfortunately, not all browsers let you set the root font size to 1px. This is a bug, not a feature. On some browsers it erroneously conflicts with the minimum font size setting in the accessibility settings (even if the actual font sizes of your elements are all larger than it). This results in your elements rendering in horrendously large proportions. And some browsers  especially some console browsers (thank‐you, [Anna Debenham](http://maban.co.uk), for letting me test with your toys)  appear to completely ignore any change to the root font size. Gotta love browsers.
CSS preprocessors to the rescue
---
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment