79808004

Date: 2025-11-03 15:17:17
Score: 1.5
Natty:
Report link

Yes — this is a known (and frustrating) rendering quirk on iOS Safari where <canvas> elements are treated as inline elements by default, causing a small baseline gap (similar to the one under images or inline SVGs).

Even though display: block; should fix it, iOS Safari sometimes still reserves space for the text baseline due to internal layout quirks. Here are several reliable ways to eliminate that gap — pick whichever works best for your layout:

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nangyal