[wp-trac] [WordPress Trac] #42700: Figure captions not inheriting max-width from figures

WordPress Trac noreply at wordpress.org
Sun Nov 26 04:38:56 UTC 2017


#42700: Figure captions not inheriting max-width from figures
--------------------------+-----------------------------
 Reporter:  bahead        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This is a follow-up to #33981.

 The "width" attribute in figure has been changed to "max-width". However,
 while figcaption would inherit "width", it does not inherit "max-width".
 As a result, a figcaption that exceeds the max-width attribute in figure
 breaks left/right alignment of the figure (i.e., the caption does not wrap
 under the image). Proposed fix is to modify media.php to insert max-width
 into figcaption as well as in figure.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42700>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list