Inherent width behavior not as described in doc #628
Comments
Actually Safari has implemented this natively. And it works in your demo the 1x and the 2x image are displayed with the same size in your layout. Also note: We do not download the 1x image to detect it's size. In fact we know that 2x has to be displayed with it's half size to match the 1x image. You can try this by changing the example and replace the Does this answer your question. |
You have a very puzzling interpretation of "displayed with the same size in your layout" considering those two screenshots! I assume the behavior you described. I file this issue because I believe the documentation is wrong. This is demonstrated by the documentation itself which references a 2x image that is actually 1.6x, and thus occupies less space in the layout. I interpreted "inherent width" as "the width of the src designated for |
lol, you are right. |
improve intrinsic dimension demo (see #628)
#266 appears to have addressed issues of using the inherent size of a 1x to size a 2x. And the site's demonstration describes this behavior:
But I am not seeing this on Safari 9.0.3 on OS X 10.11.3, as seen in the attached:
(I wouldn't imagine that requesting the 1x only to determine the inherent size is the intended behavior, but the docs do seem to imply this will happen.)
The text was updated successfully, but these errors were encountered: