-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Description
Describe the bug
Image src attribute not being reflected correctly in the DOM after the offsetWidth has first updates with the container element's width.
Reproduction
Compare console output to image element src attribute. The issue is that the update to src isn't being reflected in the DOM.
Image component should load an image with the correct intrinsic size.
https://svelte.dev/playground/0e74d58db919472f97aa1954558d3242?version=5.19.6
Logs
System Info
Browsers System:
OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
Memory: 35.28 GB / 62.52 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.18.2 - ~/.nvm/versions/node/v20.18.2/bin/node
npm: 10.8.2 - ~/.nvm/versions/node/v20.18.2/bin/npm
pnpm: 9.15.4 - ~/.local/share/pnpm/pnpm
Browsers:
Chrome: 132.0.6834.159
Chromium: 132.0.6834.83
Firefox: 134.0.2 (64-bit)Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels