Font sizes are different in Firefox and Chrome

I noticed the fonts are of different size in Firefox and Chrome. Why they are rendered differently, it shouldn’t be like that. Is that the problem in theme?

1 Like

Do you mean it’s bigger in Firefox?

If so, have you changed layout.css.devPixelsPerPx in the Firefox config?
I tested, and at first glance, I could see the difference too:

Then, after debugging, I found out that the pixel ratio was set to 1.09 for some reason.

I don’t remember modifying it; that’s odd. To reset it:

Now, it’s similar:

Is it your case as well?

1 Like

I don’t remember changing it, but will soon check and report. Thank you.

OK so I checked and the value of layout.css.devPixelsPerPx is 1. Check https://forum.liberland.org, and please tell me if it’s the same in your Firefox and Chrome?

Yes, it’s the same:

So weird, I don’t know what to think. Zoom levels here are at same level…

Can you share a screenshot of what you see, like I did above?

Also, I’m not sure if it will be helpful, but you can try checking out this simple page (source): Browser font size diagnostics.

It gives basic information. You could compare the data between Chrome and Firefox. Feel free to take a screenshot and share it there.

1 Like

It was the default font size setting in Firefox which was 18, and in Chrome it was 16. I don’t remember changing it in Firefox, but probably I did. Thank you!

2 Likes