W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

Re: [csswg-drafts] [css-images] image-orientation:none violates same-origin policy (#5165)

From: Cameron McCormack via GitHub <sysbot+gh@w3.org>
Date: Sat, 06 Jun 2020 02:41:19 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-639962482-1591411278-sysbot+gh@w3.org>
> I guess what we could do is that we take the orientation into account for decoding purposes, but don't store it as a field on the resulting image if it was generated from an opaque response. So it appears rotated, but if you query its metadata it'll return the default orientation values.

I think this would be the right approach.  The [https://whatpr.org/html/5603/images.html#intrinsic-orientation](intrinsic orientation) spec concept for opaque images would be "zero degrees, no flip", and the image dimensions (whether the image is opaque or not) would have the orientation taken into account. `image-orientation`'s behavior would then be written in terms of the image's intrinsic orientation.

-- 
GitHub Notification of comment by heycam
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5165#issuecomment-639962482 using your GitHub account
Received on Saturday, 6 June 2020 02:41:21 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:12 UTC