0

When I open the same websites in Firefox, Chrome, and Vivaldi, the content appears much smaller in Firefox than in both Chromium based browsers, despite site zoom is set to 100% in all of them.

Using content with annotated pixel sizes, taking screenshots, and measuring them in GIMP makes me conclude, that the display size is correct in Chrome but too small in Firefox.

I found an old Mozilla support issue. While it's about content being to large on Windows, it says that Firefox is supposed to respect system-wide device pixel density settings by default, and that it can be overridden setting layout.css.devPixelsPerPx to a custom value in about:config. While a value of 1.2 seems to "fix" the problem, I would rather fix the root cause and make sure my system is set up correctly.

Where would I adjust Linux device pixel density settings to correct the zoom in Firefox without breaking it in Chrome?

I use Ubuntu 20.04.3 LTS with Ubuntu Budgie desktop on a Tuxedo Infinitybook.

8
  • 1
    I cannot replicate this, however the link you posted provides a solution using about:config in Firefox
    – Nmath
    Jan 10, 2022 at 19:23
  • Thanks @Nmath, setting layout.css.devPixelsPerPx to 1.2 is about right, but as it defaults to system settings, I would rather correctly set up my system instead of tweaking the browser. Other browsers seem to get it right out of the box, and I'm still not sure if this is a misconfiguration, a Linux bug, a Budgie bug, or a browser bug. Jan 10, 2022 at 19:28
  • I updated the question, adding details about the Firefox override. Jan 10, 2022 at 19:30
  • If the problem is only in Firefox, why would you want to make any change to system wide settings? You solved the problem 100% using application settings in the only problematic application, so why do you need/want another solution, especially when a system wide solution is just going to break everything else.
    – Nmath
    Jan 10, 2022 at 19:37
  • 2
    How is the fix an ugly tweak? Didn't you say that it works? Are there still problems? about:config is not any uglier than making a similar configuration change in Ubuntu. But the problem is in your distaste of how things are rendered in Firefox so it makes absolutely no sense to make changes to how your entire system renders things. Now if you did that, that would be quite an ugly fix!
    – Nmath
    Jan 10, 2022 at 19:43

0

You must log in to answer this question.

Browse other questions tagged .