DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
HTML Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
HTML
Why does setting a canvas's size via CSS (e.g. `canvas { width: 800px }`) instead of the width/height HTML attributes cause blurry rendering?
A
CSS sizing is not supported on canvas elements at all
B
CSS sizing scales the existing bitmap to the new display size rather than changing the actual drawing resolution, producing an upscaled/blurred result
C
CSS sizing only affects canvas elements in Firefox
D
There is no difference between CSS sizing and the width/height attributes
Check Answer