Caption shortcode inserts inline style forcing width of containing div
|Reported by:||iandunn||Owned by:||nacin|
|Severity:||minor||Keywords:||3.2-early dev-feedback has-patch|
This is related to #9066.
The problem is that the image caption shortcode inserts an inline style on the containing div which sets the width to an arbitrary value which cannot be overriden by the theme's stylesheet.
The proposed solution is to replace the shortcode function with a custom one which creates the markup without the inline style, but this is undesirable. It adds unnecessary complexity for beginners and is just generally annoying and shouldn't be necessary.
Creating an inline style violates web standards and contradicts the philosophy behind a theme-based architecture.
The inline style on the div should be removed so that theme developers can style the caption like they would any other element, without having to resort to inconvenient workarounds.
Change History (14)
- Keywords needs-patch added; caption inline style removed
- Owner set to nacin
- Status changed from new to accepted