[wp-trac] [WordPress Trac] #18775: no picture reduction

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 26 08:40:52 UTC 2011


#18775: no picture reduction
---------------------------+------------------------------
 Reporter:  micha15295     |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  3.2.1
 Severity:  major          |  Resolution:
 Keywords:  needs-patch    |
---------------------------+------------------------------
Changes (by dd32):

 * keywords:   => needs-patch
 * component:  General => Bundled Theme


Comment:

 When inserting full sized images through TinyMCE, TwentyEleven's CSS
 overrides the %age width(specified via exact pixel dimensions in the `<img
 />`), causing the resulting image to be displayed at full width rather
 than scaled.

 The CSS rule this is coming from is this:
 {{{
 img.size-full {
 max-width: 97.5%;
 width: auto;
  }
 }}}

 I can't see any extra generated classes which can be used to indicate that
 the image has been scaled. One alternative would be to define an inline
 style on the `<img />` tag that duplicates the html attributes
 height/width..

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18775#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list