Skip to content

[bug] box-shadow renders only on moving targets #15176

@raresvanca

Description

@raresvanca

Describe the bug

box-shadows renders only when the target element transitions in or when I resize the window. I think this bug might be caused by webkit gtk, but I couldn't find any known issues.

Here is a screenshot of how the code in the reproduction section renders:

Screencast.From.2026-03-30.17-31-47.mp4

This is how the html+css looks in chrome:

Image

Tested in a blank new project with a vanilla template + javascript & npm

Reproduction

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <style>
      .legacy-shadow {
        -webkit-box-shadow: 4px 4px 4px rgba(0,0,0,0.8);
        -moz-box-shadow: 4px 4px 4px rgba(0,0,0,0.8);
        box-shadow: 4px 4px 4px rgba(0,0,0,0.8);
      }
      .container {
        width: 100%;
        height: 100%;
      }
    </style>
  </head>

  <body>
    <div class="container"> <div class="legacy-shadow">Where is my ring or shadow?</div> </div>
  </body>
</html>

Expected behavior

The box-shadows to render.

Full tauri info output

$ npm run tauri info

> blank@0.1.0 tauri
> tauri info


[✔] Environment
    - OS: Fedora 43.0.0 x86_64 (X64) (gnome on wayland)
    ✔ webkit2gtk-4.1: 2.50.5
    ✔ rsvg2: 2.61.0
    ✔ rustc: 1.94.0 (4a4ef493e 2026-03-02)
    ✔ cargo: 1.94.0 (85eff7c80 2026-01-15)
    ✔ rustup: 1.29.0 (28d1352db 2026-03-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 22.22.0
    - npm: 10.9.4
    - deno: deno 2.7.7

[-] Packages
    - tauri 🦀: 2.10.3
    - tauri-build 🦀: 2.5.6
    - wry 🦀: 0.54.4, (outdated, latest: 0.55.0)
    - tao 🦀: 0.34.8, (outdated, latest: 0.35.0)
    - @tauri-apps/api  ⱼₛ: not installed!
    - @tauri-apps/cli  ⱼₛ: 2.10.1

[-] Plugins
    - tauri-plugin-opener 🦀: 2.5.3
    - @tauri-apps/plugin-opener  ⱼₛ: not installed!

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../src

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: Linuxstatus: needs triageThis issue needs to triage, applied to new issuesstatus: upstreamThis issue is blocked by upstream dependencies and we need to wait or contribute upstream fixestype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions