Make WordPress Core

Ticket #21440: 21440.image-width.diff

File 21440.image-width.diff, 867 bytes (added by obenland, 12 years ago)

Makes Image Test, page 3, in Theme Unit Test valid

  • wp-content/themes/twentytwelve/style.css

     
    286286img.header-image,
    287287img.wp-post-image {
    288288        max-width: 100%;
    289         width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */
    290289        height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
    291290}
    292291
     
    16081607.ie .widget-area {
    16091608        float: right;
    16101609        width: 26.041666667%;
     1610}
     1611.ie img.size-full,
     1612.ie img.size-large,
     1613.ie img.header-image,
     1614.ie img.wp-post-image {
     1615        width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */
    16111616}
     1617 No newline at end of file