-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
addition/proposalNew features or enhancementsNew features or enhancementsimpacts documentationUsed by documentation communities, such as MDN, to track changes that impact documentationUsed by documentation communities, such as MDN, to track changes that impact documentationtopic: img
Description
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25508#c26
It seems like there is not enough interest in trying to rotate all images by default. It's also not clear to me that it's a good idea to drop the CSS property, since one might want to rotate e.g. 'content: url(image)' images etc.
I suggest we do this:
- Keep the CSS property.
- Add autorotate to
<img>
- Add
img[autorotate] { image-orientation: from-image; }
to Rendering.- Clarify that
image-orientation
affectsnaturalWidth
,drawImage()
, etc.- Require that https://html.spec.whatwg.org/multipage/browsers.html#read-media has an
autorotate
attribute set on the<img>
(for top-level images and images in<iframe>
s).
or, we could change the initial value of image-orientation from none
to from-image
(cc @tabatkins ), so all images are rotated "correctly" by default. Use counter data from 2016 found affected images to be ~0.00% of all images.
cc @dbaron
stramel and matthewhartstonge
Metadata
Metadata
Assignees
Labels
addition/proposalNew features or enhancementsNew features or enhancementsimpacts documentationUsed by documentation communities, such as MDN, to track changes that impact documentationUsed by documentation communities, such as MDN, to track changes that impact documentationtopic: img