[wp-trac] [WordPress Trac] #42118: Twenty Seventeen: Double bottom-margins appear below embeds

WordPress Trac noreply at wordpress.org
Fri Oct 6 00:25:07 UTC 2017


#42118: Twenty Seventeen: Double bottom-margins appear below embeds
---------------------------+-----------------
 Reporter:  westonruter    |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  4.9
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------
 There is some CSS in Twenty Seventeen to make sure embeds and iframes fit
 their containers:

 {{{#!css
 embed,
 iframe,
 object {
         margin-bottom: 1.5em;
         max-width: 100%;
 }
 }}}

 However, in the case of an oEmbed where a video appears inside of its own
 paragraph the result is a double margin between the iframe and the next
 paragraph. The margin should only be added if the iframe is the only child
 of the parent element.

 This is a problem both for videos in post content and for videos embedded
 into the Text widget via #40854.

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


More information about the wp-trac mailing list