Width of "Input wikitext" textfield on Special:ExpandTemplates is different from normal. This is because OOUI TextInputWidgets have a width set in ems (relative to font-size), and we set a font-size on inputs that contain wikitext.
Some "Git blame" led me here ;)
Could someone remember why we need to put "monospace" twice in the rule font-family: monospace, monospace; please?
I know it's some CSS workaround, but I cannot find any reference back…
font-family: monospace; makes browsers apply weird font-sizing calculations that don't follow standard CSS behavior, examples on a div (with 16px browser font-size):
- font-family: monospace; font-size:1em; will result in 13px font-size in Chromium browsers.
- font-family: monospace; font-size:0.8em; will result in 10.4px! (0.8 * 13px)
- a textarea without extra rules will have 13.3333px!
- a textarea with font-size:1em; rule will have 13px...
Any other font-family rule, ex. monospace, monospace; will disable this behavior.