Applies style to this document, producing an Element that can be
rendered on a canvas. Parameters width and height serve as the
fallback values if they were not specified in the style itself.
However, they are ignored if style.width and style.height are
provided.