|
|
|
|
|
by dictum
2563 days ago
|
|
This is plain FUD, sorry. The rem unit is remarkably well supported, going back to IE9, Android 2 and iOS 4. It has a specific meaning: it's relative to the root element, which usually means it's relative to the font size the user set as the default font size for the browser — 16px by default in most devices. It's not just a stuffy alias for the px unit, used by sneaky developers to make maintenance harder. It has a semantic purpose, which makes it useful for maintainability: if your body text is 1rem, when a heading should be double the size of body text, writing it as 2rem makes the sizing relationship between these two values immediately recognizable. https://caniuse.com/#search=rem |
|