Re: Default font-size of several form controls: 13.3333px in Chrome; 21.3333px in Firefox

Le 2018-04-18 18:45, Gérard Talbot a écrit :
> Le 2018-04-18 17:50, Felix Miata a écrit :
>> Gérard Talbot composed on 2018-04-18 16:05 (UTC-0400):
>> 
>>> Firefox 52.7.3 and Firefox 61.0a1 (today's nightly build)
>> 
>>> input {
>>> (...)
>>>  font: -moz-field;
>>> (...)
>>> }
>> 
>>> coming from resource://gre-resources/forms.css
>> 
>>> and computes to 21.3333px


[snipped]


>> -moz-field is one of the old CSS fonts to inherit from
>> the system.


[snipped]


>> CSS form control fonts were (still are?) intended to inherit fonts 
>> from the DE,
> 
> This is what I did not know before sending that email. I totally miss
> that; totally unaware of.
> 
>> typically GTK for Linux even though the actual DE is not using Gnome 
>> or any of
>> its relatives, e.g. KDE, TDE or anything QT-based.
> 
> I have
> GTK2 Theme: Clearlooks
> GTK3 Theme: Adwaita
> Font: DejaVu Sans Condensed 16 (most likely pt, not px)

The font size of the GTK Theme affects -moz-field in Firefox. If I set 
it to 10, then -moz-field becomes 13.33px. If I instead set it to 16, 
then -moz-field becomes 21.33px.

You help me figure this out, Felix. Thank you!

So, ok. My mistake. Please ignore this thread.

Gérard

Received on Thursday, 19 April 2018 05:19:07 UTC