pub fn fit(
canvas: &HtmlCanvasElement,
ctx: &CanvasRenderingContext2d,
css_size: Vec2,
ratio: DevicePixelRatio,
) -> RectExpand description
Size canvas’s backing store for css_size at ratio and put ctx in
CSS pixels. Answers the viewport the display list is drawn in.