[wp-trac] [WordPress Trac] #30201: img_caption_shortcode_width should support percentage widths

WordPress Trac noreply at wordpress.org
Tue Jan 6 16:30:55 UTC 2015


#30201: img_caption_shortcode_width should support percentage widths
-------------------------------------------------+-------------------------
 Reporter:  danielbachhuber                      |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Media                                |  Release
 Severity:  normal                               |     Version:
 Keywords:  good-first-bug has-patch needs-      |  Resolution:
  testing close                                  |     Focuses:
-------------------------------------------------+-------------------------

Comment (by williampatton):

 Replying to [comment:12 azaozz]:
 >
 > I meant supporting a percentage width for image captions as an option in
 TinyMCE, sorry for not making it clearer. It's not acceptable to have it
 work one way in the editor and another way on the front-end. Currently
 this is possible to do both in the editor and on the front-end with
 `width: 50% !important`, etc. and IMHO this covers the user cases well.

 Ahh OK I get you. To be honest I hadn't realized there would be a
 discrepancy between editor and front-end. Being someone who's more
 comfortable using the text editor than the visual one I often overlook
 issues like that.

 There are a handful of cases where allowing a percentage to be used would
 be handy but I'm starting to see your point and edging more towards your
 wontfix suggestion. Themes that set something like `width:50% !important`
 definitely would cover most use cases - and since `[caption]` can accept a
 custom class name I think that offers an acceptable way to set anything
 else that might be required.

 I second the notion of 'wontfix' for this ticket but can't help thinking
 that there's got to be something that could be done for anyone that does
 need to be specify percentages for caption sizes... unfortunately I'm not
 really sure what that 'something that could be done' might be :(

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30201#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list