[wp-trac] [WordPress Trac] #17044: div.wp-caption shortcode should have width of img, rather than add +10px
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 27 17:53:04 UTC 2012
#17044: div.wp-caption shortcode should have width of img, rather than add +10px
-------------------------------+------------------------------
Reporter: mgk25 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 3.1
Severity: normal | Resolution:
Keywords: close 2nd-opinion |
-------------------------------+------------------------------
Comment (by oncletom):
Replying to [comment:12 azaozz]:
> Replying to [comment:9 oncletom]:
> > ... (which is there since 3.1, it means many themes did not have this
10px in mind BEFORE 3.1 – breaking things since this time does not seem to
be problematic though)
>
> The extra 10px have been there since the introduction of image captions
in [http://wordpress.org/news/2008/07/wordpress-26-tyner/ 2.6], four years
ago :)
Oh come on, please provide me pros and cons but not such a foolish thing.
It has been around since 4 years and so what? If it had been bad for 4
years, is it a reason to keep it?
This property being inlined is very hard to override because it is
inlined.
>
> Still haven't seen a single case where removing these 10px would make
styling images with captions any easier/better, or even any different.
Removing the width completely will make some difference for floated
images, however there doesn't seem to be a straightforward way to center a
caption without it.
I don't ask to remove the width. Just about **removing the extra 10
pixels** of the real width.
If other people did not complain does not justify the fact *things are
good, we don't touch them even if this is the matter of this issue*.
Seriously.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17044#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list