[wp-trac] [WordPress Trac] #48617: Twenty Twenty: Figure elements with inline style can overflow content bounds
WordPress Trac
noreply at wordpress.org
Wed May 13 11:05:22 UTC 2020
#48617: Twenty Twenty: Figure elements with inline style can overflow content
bounds
-------------------------------------+-----------------------------
Reporter: Anlino | Owner: nielslange
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Bundled Theme | Version: 5.3
Severity: normal | Resolution:
Keywords: needs-testing has-patch | Focuses: css
-------------------------------------+-----------------------------
Changes (by samful):
* keywords: needs-testing has-patch needs-refresh => needs-testing has-
patch
Comment:
Apologies for that @ianbelanger , I failed in testing this properly and
will take more care in the future... The issue seemed to be because of the
{{{:not}}} CSS seemingly not supporting more specific targeting like
{{{:not(figure.aligncenter)}}} , I can't seem to find example of this
online, so I'm assuming this isn't supported and I changed it to a more
broad {{{:not(.aligncenter)}}}.
I tested this patch on the sample page using blocks and added a few
paragraphs of text under my image in the classic editor and the margins
seem to be back now. I just hope my not rule isn't too broad now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48617#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list