I agree, font-family IMO should go back to inherit. I’ve read #591 and I want to specifically say I’m only addressing font- family and not offering an opinion on font-size or line-height.ġ As just one example, Mac Chrome sets input to monospace while Mac Firefox sets it to -apple-system and IE 11 sets it to Arial ( fiddle)
NOT INHERIT FONT FROM BODY CODE
Is that a big group? Outside those two conditions being met, everyone else has to write more code to override the new normalize rule. The current rule optimizes for people who 1) Don’t want form elements to use the base font family they assigned and 2) Definitely want the form element font to be sans-serif. If not, I probably have a very specific look for form elements that I’ll have to write code for no matter what. If my site uses Open Sans as its base font I will probably want my form elements to use Open Sans. 1 But I think the normalization should be inherit, not sans-serif.īecause inherit causes less work in the majority of cases. I believe Normalize does have to set something for form elements’ font-family as part of its goals since browsers do set differing default values for that property. This is a simple technique to achieve consistent site appearance. (Weakly, meaning very easy to override in special cases).
![not inherit font from body not inherit font from body](https://ae01.alicdn.com/kf/H17fe6f2cef9c44a39f28ad373093f347w/4-sztuk-1-0-48X18mm-Mini-Crawler-gumowe-opony-do-kół-opona-do-1-24-gąsienica-RC-oś-samochodu-SCX24-90081-części-zamienne-tanie-tanio-CN-(pochodzenie)-Materiał-kompozytowy-7-12y-12-%2B-y-18-%2B-Do-składania-Pojazdów-i-zabawki-zdalnie-sterowane-NONE-Samochody.jpg)
![not inherit font from body not inherit font from body](https://ftp.autobodynews.com/media/k2/items/cache/e40837b5b682dfd3bf19c4c3c2034511_XL.jpg)
I then appreciate that font being (weakly) inherited by every element automatically.
![not inherit font from body not inherit font from body](https://s3.studylib.net/store/data/006606415_1-1bc58cd72d42ef8f17706a10baed0187-768x994.png)
I think the opinionated setting of font-family on form elements causes more work in the typical case and is outside the spirit of normalize.cssĪs a user of this library, the most common thing I do is set a base font for a project.