Skip to content

webkitgtk_4_1: incorrect rendering #367378

Description

@DOD-101

Describe the bug

When using webkitgtk_4_1 rendering seems to be broken in some way:

image
(webview on the left and Firefox on the right)

This applies to a number of different things, from fonts being the wrong size to the checkboxes not even appearing in the webview.

I first encountered this in some rust code, but have been able to reproduce the same result in python.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create the following script:
import webview

webview.create_window("Hello world", "http://localhost:2323/")
webview.start()
  1. Load anything on localhost.

  2. Make sure you have the required dependencies (some of these might not be needed):
    nix-shell --command zsh -p gtk3 python312Packages.pygobject3 python312Packages.pywebview python312 python312Packages.typing-extensions webkitgtk_4_1

  3. Run python main.py

Expected behavior

The result in webview should be rendered properly, similar to how firefox displays it. This is what happens on other distros, which is why I think the issue might have to do with nix/NixOS.

Screenshots

Additional context

I have encountered this issue on both my nix machines and not any other machines.

I don't have this issue on Arch Linux, and I also know this doesn't happen on Fedora.

Also see this post on the NixOS discourse: https://discourse.nixos.org/t/tauri-dev-build-not-rendering-correct/57136

If you want a more fleshed out example, you can try out either creating a fresh tauri project and seeing what the demo pages looks like in comparison to what it should or try running igneous-md.

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.63, NixOS, 25.05 (Warbler), 25.05.20241209.a73246e`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - nixpkgs: `/nix/store/yw6kg4rb9v8s3ypjbpspig5r81m4lr5s-source`

Notify maintainers

@NixOS/gnome, @dasj19, @bobby285271


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions