Describe the bug
When running a SvelteKit app inside a macOS Tauri window with a black background (background-color: #000 or similar) and height: 100%, width: 100%, white gaps appear on the right and bottom edges during resizing or maximizing the window.
The layout realigns correctly only after the resize event finishes, not during the resize.
Reproduction
- Create a new SvelteKit + Tauri app (macOS).
- Set the body or main container to:
html, body { background-color: #000; width: 100%; height: 100%; margin: 0; }
- Resize or maximize the window.
Expected behavior
The background should remain fully black at all times, no white margins should appear while resizing or after maximizing the window. All components must aligned correctly even during the resize.
Full tauri info output
[✔] Environment
- OS: Mac OS 26.0.0 arm64 (X64)
✔ Xcode Command Line Tools: installed
✔ Xcode: 26.0.1
✔ rustc: 1.90.0 (1159e78c4 2025-09-14)
✔ cargo: 1.90.0 (840b83a10 2025-07-30)
✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
✔ Rust toolchain: stable-aarch64-apple-darwin (overridden by environment variable RUSTUP_TOOLCHAIN)
- node: 22.16.0
- pnpm: 10.13.1
- yarn: 1.22.22
- npm: 11.6.0
[-] Packages
- tauri 🦀: 2.8.5
- tauri-build 🦀: 2.4.1
- wry 🦀: 0.53.4
- tao 🦀: 0.34.3
- tauri-cli 🦀: 2.8.4
- @tauri-apps/api : 2.8.0
- @tauri-apps/cli : 2.8.4
[-] Plugins
- tauri-plugin-log 🦀: 2.7.0
- @tauri-apps/plugin-log : not installed!
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../public
- devUrl: http://localhost:5173/
- framework: Svelte
- bundler: Vite
Stack trace
Additional context
Setting the background to black in multiple places (including app.html) does not prevent the white area.
Describe the bug
When running a SvelteKit app inside a macOS Tauri window with a black background (background-color: #000 or similar) and height: 100%, width: 100%, white gaps appear on the right and bottom edges during resizing or maximizing the window.
The layout realigns correctly only after the resize event finishes, not during the resize.
Reproduction
html, body { background-color: #000; width: 100%; height: 100%; margin: 0; }Expected behavior
The background should remain fully black at all times, no white margins should appear while resizing or after maximizing the window. All components must aligned correctly even during the resize.
Full
tauri infooutputStack trace
Additional context
Setting the background to black in multiple places (including app.html) does not prevent the white area.