https://github.com/whatwg/html/issues/4495 It's not specified whether image.naturalWidth and image.naturalHeight should respect EXIF orientation (probably). However, WebKit also takes image-orientation style into account, and should probably not. Also, we don't update style and layout before using the renderer to get at the style. So there are multiple bugs here.