Browse files

Twenty Twelve: fix skewed gallery thumbnail images in IE8 by adding s…

…electors to match attachment thumbnails and any mix-and-match of full-size and large-size image that may occur in content. Fixes #22782.

git-svn-id: http://core.svn.wordpress.org/trunk@23102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 34e2ed3 commit 3bb105109b0b3a6804c27357615e81b1a9769f64 @nanobar nanobar committed Dec 6, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 wp-content/themes/twentytwelve/css/ie.css
View
5 wp-content/themes/twentytwelve/css/ie.css
@@ -26,7 +26,10 @@ body.custom-background-white .site {
img.size-full,
img.size-large,
img.header-image,
-img.wp-post-image {
+img.wp-post-image,
+img[class*="align"],
+img[class*="wp-image-"],
+img[class*="attachment-"] {
width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */
}
.author-avatar {

0 comments on commit 3bb1051

Please sign in to comment.