On the tutorial section that explains how to use bind:this, there is a bug in that the reactive width and height values set for the canvas are overridden by the canvas CSS section.
I found this confusing as I felt something was supposed to be demonstrated by binding these values reactively.
Reproduction
See the style section of the App.svelte file is as such:
Describe the bug
On the tutorial section that explains how to use
bind:this
, there is a bug in that the reactive width and height values set for the canvas are overridden by the canvas CSS section.I found this confusing as I felt something was supposed to be demonstrated by binding these values reactively.
Reproduction
See the style section of the
App.svelte
file is as such:Remove the
width
andheight
parameters as such:See that the canvas element now appropriately sizes to a
width
andheight
of32
as described here (which is clearly too small):Logs
No response
System Info
Severity
annoyance