[wp-trac] [WordPress Trac] #37632: Incorrect Image Previews for SVG
WordPress Trac
noreply at wordpress.org
Thu Aug 11 04:57:46 UTC 2016
#37632: Incorrect Image Previews for SVG
------------------------------+------------------------------
Reporter: simonrcodrington | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Comment (by simonrcodrington):
Hey again guys.
Looking through other parts of WP, it seems SVG widths have the same
issue. For example when selecting an SVG element as a 'featured image' on
posts / pages. The preview will also be 1px wide and be invisible to the
user.
I've added the following style and it now works in the featured image
section.
{{{
#postimagediv .inside img[src*='.svg'] {
width: 100%;
height: auto;
}
}}}
There might be other places where similar styling needs to be added to
ensure SVG's work.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37632#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list