This issue proposes that small values, ranging from 1px to 4px, should be set in px rather than rem as they are most commonly used for things like borders, which should render consistently regardless of any user adjustments to browser font size.
The range is up for discussion, I thought 1px to 4px would make sense, but we can increase the range.
In Firefox if the user increases the browser font size, border width will scale if set to rem, but in Chrome and Safari border width doesn't seem to scale if set to rem.
Border width set in rem and large browser font size
 |
 |
 |
| Firefox (border width is heavier) |
Chrome |
Safari |
Border width set in px and large browser font size
 |
| Firefox |
In all 3 browsers, border-radius will scale if set in rem.
Computed border-radius in Chrome when set in rem
 |
 |
 |
| Default font size |
Very large font size |
Very small font size |
Should border radius scale depending on user set browser font size or remain constant? In which case we should also render them in px rather than rem.
This issue proposes that small values, ranging from
1pxto4px, should be set inpxrather thanremas they are most commonly used for things like borders, which should render consistently regardless of any user adjustments to browser font size.The range is up for discussion, I thought
1pxto4pxwould make sense, but we can increase the range.In Firefox if the user increases the browser font size, border width will scale if set to
rem, but in Chrome and Safari border width doesn't seem to scale if set torem.Border width set in
remand large browser font sizeBorder width set in
pxand large browser font sizeIn all 3 browsers,
border-radiuswill scale if set inrem.Computed
border-radiusin Chrome when set inremShould border radius scale depending on user set browser font size or remain constant? In which case we should also render them in
pxrather thanrem.