🏠 back to Observable

Bug: No spacing between canvas + figcaption

Environment

  • Browser: Googe Chrome 74.0.3729.131
  • OS: macOS High Sierra (10.13.6)

Steps to reproduce

  1. Create a notebook.
  2. Add a canvas element inside a figure.
  3. Add a figcaption element.

Expected result

Spacing between canvas and figcaption is identical to a figure containing an img element and a figcaption.

Actual result

No spacing between canvas and figcaption.

Background

Default style “vertical-align:middle” for canvas, input messes up placement: