Scale images in documentation rendered by Documenter.jl (maybe CSS question)

I have a bunch of images in the documentation of a package. These images are generated on the fly by the docs/make.jl as last values of @example blocks, and are rendered as SVG by a Base.show(out_io::IO, ::MIME"image/svg+xml", ...) method.

Is there a way I can scale these images, eg to 200% of their original size? I suspect that this can by done in CSS, and I should be looking at the article img selector, but what property to add.

I found the zoom CSS property, which works fine, but it is fairly recent. Still, the worst that can happen is that images remain the original size.

scale(...) is much older and widely supported, but then the image will “pop” from the container, which is not resized accordingly.