aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn
diff options
context:
space:
mode:
authorhttps://www.google.com/accounts/o8/id?id=AItOawlUtmRueCOLddksWZN8zOVnseVrtRSxM58 <Per@web>2011-11-17 17:17:48 -0400
committeradmin <admin@branchable.com>2011-11-17 17:17:48 -0400
commitdbfaea88738c8e753afba2e71b42fd3a1d46685d (patch)
tree07803c4da5acd5d945f0452b75230e649325107a /doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn
parentceacee1c17ca0bd32d5056d9a19be335c7b60cf9 (diff)
downloadikiwiki-dbfaea88738c8e753afba2e71b42fd3a1d46685d.tar
ikiwiki-dbfaea88738c8e753afba2e71b42fd3a1d46685d.tar.gz
Diffstat (limited to 'doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn')
-rw-r--r--doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn b/doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn
new file mode 100644
index 000000000..2ab1fee36
--- /dev/null
+++ b/doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn
@@ -0,0 +1,6 @@
+When using the img directive while reducing the size of the image by only specifying either the width ("100x") or height ("x100"), the resulting HTML breaks/confuses IE (at least 8 and 9).
+
+In those cases img plugin do generate HTML with the missing attribute as "empty". For example, if the new size is specified as "100x", the resulting HTML will be &lt;img&nbsp;...&nbsp;width="100"&nbsp;height=""/&gt;. When IE encounters such empty attributes, the image is sort of compressed into a one (1!) pixel high (or wide) image, which is **not** what you expected.
+
+If we instead always get the resulting the width and height from the resized image, and uses those values in the img attrs, we make IE happy (and all other renders as well).
+