-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
bugcompilerChanges relating to the compilerChanges relating to the compilerruntimeChanges relating to runtime APIsChanges relating to runtime APIs
Description
Describe the bug
When using width attribute along with spread props on img, width is always zero.
<img {src} width="100%" alt="Alt text" {...someObject} >
The rendered HTML has width="0"
Reproduction
REPL
REPL uses $$restProps
but bug occurs with spreading any object.
Logs
None
System Info
System:
OS: Windows 10 10.0.19043
CPU: (8) x64 Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz
Memory: 1.25 GB / 7.85 GB
Binaries:
Node: 16.6.0 - C:\Program Files\nodejs\node.EXE
npm: 7.21.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1023.0), Chromium (93.0.961.52)
npmPackages:
svelte: ^3.42.6 => 3.42.6
Severity
annoyance
Metadata
Metadata
Assignees
Labels
bugcompilerChanges relating to the compilerChanges relating to the compilerruntimeChanges relating to runtime APIsChanges relating to runtime APIs