Opened 9 years ago
Closed 9 years ago
#42118 closed defect (bug) (fixed)
Twenty Seventeen: Double bottom-margins appear below embeds
| Reported by: | westonruter | Owned by: | davidakennedy |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | Bundled Theme | Version: | 4.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
There is some CSS in Twenty Seventeen to make sure embeds and iframes fit their containers:
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.
Attachments (2)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Tested this. I can confirm the bug, and the patch looks good to me. Thanks @westonruter!