Page MenuHomePhabricator

Support inline styles for images
Closed, DeclinedPublic

Description

The syntax for embedded images in MediaWiki currently supports quite a few attributes, including CSS class, such as [[File:Example.png|class=...]].
However, it doesn't support CSS inline styles, like [[File:Example.png|style=...]].

We support inline styles for tables, and for divs and spans; as a user I would expect to be able to define styles wherever I can define a class.

Event Timeline

MC8 created this task.Dec 19 2014, 12:12 PM
MC8 raised the priority of this task from to Needs Triage.
MC8 updated the task description. (Show Details)
MC8 added a project: MediaWiki-General.
MC8 changed Security from none to None.
MC8 updated the task description. (Show Details)
MC8 added a subscriber: MC8.
Aklapper triaged this task as Lowest priority.Dec 19 2014, 3:07 PM
Jdforrester-WMF closed this task as Declined.Nov 16 2015, 4:09 PM
Jdforrester-WMF claimed this task.
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

In general we're very reticent to add more syntax to wikitext at this point, especially to media transclusion which we're considering re-writing from scratch (see T90914: Provide semantic wiki-configurable styles for media display). In particular, inline styles are almost certainly not going to happen (see this RfC on scrapping them, and T89134: Removing inline CSS/JS from MediaWiki for the bigger picture). Consequently I am declining this task.