Why is css "font-family:inherit" affecting color of ` tags style. – Tony Apr 05 '17 at 21:48

  • Please check the fiddle, no parent tags. Inherit is from user-agent but I can't track te actual value. Exact value. Value which would give me the same appearance when i set it to `font-family: {value}` – Zoran Antolović Apr 05 '17 at 21:50
  • @ZoranAntolović I updated the answer to show the user agent style thats setting your select tag. I found it using your fiddle. – Tony Apr 05 '17 at 21:59
  • This answer does not address the question at all. – Jukka K. Korpela Apr 05 '17 at 22:10
  • @JukkaK.Korpela It address's where the inherited font-family is coming from. So it looks like it is answering the question... – Derek Apr 05 '17 at 22:21
  • @Tony thanks! it's this rule: `font-family: system-ui;`. I was looking for this value `system-ui` – Zoran Antolović Apr 06 '17 at 05:04
  • @ZoranAntolović No problem Zoran! If this answers your question please accept this answer to close the question. – Tony Apr 06 '17 at 15:06
  • This just says that the initial value of `font-family` is browser-dependent, which is well known and stated in CSS specs. It does not the least address the question why setting `font-family` affects the color (of something). – Jukka K. Korpela Apr 07 '17 at 06:24
  • @JukkaK.Korpela Actually, as the OP even said that's what he was looking for. So OP was incorrectly asking for the wrong answer and Tony did fix the issue. – Derek Apr 12 '17 at 23:01
  • 0

    For whatever reason, the font-family property on form elements cannot be 100% predictably styled across all browsers. I'm not sure if it's a rendering or security reason but in the case of Chrome, the system-ui font seems to be the culprit here.

    https://jsfiddle.net/8nr6h74o/3/

    casey
    • 395
    • 1
    • 8