https://bugzilla.wikimedia.org/show_bug.cgi?id=49440

--- Comment #9 from Brion Vibber <[email protected]> ---
Changing the underlying image to one with double the dimensions changes the
"natural size" of the image element to match the new image, eg from 320x240 to
640x480.

Normally, the 'width' and 'height' attributes on the img element override this
natural size with the dimensions of the original image (320x240). (Because
these dimensions are the same as the original image's natural size, it's easy
not to notice this.)

However, when CSS 'width' and 'height' are both set to 'auto' with !important,
the layout engine appears to essentially override the on-element attributes,
and it goes right back to the natural size of the content... 640x480 pixels.



Looking more carefully, this isn't specific to iOS 7 -- I see the basic bug on
iOS 6 simulator as well. However, the 'max-width' appears to kicking in in iOS
6, where it doesn't in iOS 7. This causes the doubling bug to only really be
noticeable on smaller inline images (for instance the flag and seal in [[San
Francsico]]'s infobox), while on larger images (like [[San Francisco]]'s
thumbnail image) the max-width is keeping it screen-sized.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to