[wp-trac] [WordPress Trac] #30782: Caption shortcode adds inline width style
WordPress Trac
noreply at wordpress.org
Wed Dec 24 07:24:17 UTC 2014
#30782: Caption shortcode adds inline width style
--------------------------+------------------------------
Reporter: philbuchanan | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 3.7
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by nacin):
* version: 4.1 => 3.7
Comment:
Replying to [comment:2 philbuchanan]:
> I understand the desire to force the caption to wrap, but isn't this
something that should be done by theme developers? As it stands, it's very
difficult to override this inline style in a themes stylesheet.
It's also very difficult to force a caption to wrap in a theme without
this inline style, since an image's width is determined by the user's
actions, not the theme specifications.
Every time I look at this, I feel like despite having dedicated HTML
elements (figure and figcaption), HTML itself is letting us down here. If
someone can come up with a sane way to do this, from the perspective of
the user, the theme developer, and the core developer, then I'm all ears.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30782#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list