Make sure images that don't have an explicit alignment get aligned right
authorkaldari <rkaldari@wikimedia.org>
Fri, 6 Jun 2014 21:11:48 +0000 (14:11 -0700)
committerGWicke <gwicke@wikimedia.org>
Fri, 6 Jun 2014 23:17:24 +0000 (23:17 +0000)
commit99f093ad2f3552a193409c8ac37e196d47f33bc1
tree5ab595d2d4bac516ad438d75e0302f12f9eec637
parent50537a24c81a24c6050feb0db6d9aaf238609264
Make sure images that don't have an explicit alignment get aligned right

If the alignment of an image is not explicitly set, Parsoid does not
output an alignment class for the resultant figure element. This can lead
to the image not being aligned/floated.

To fix this we modify content.parsoid.less to apply the default
right-alignment styling to all images and then override this in cases
where the alignment is explicitly set.

Bug: 66282

Change-Id: I4f986f23b0c8ba6f6b66efc07eb38806744123e2
resources/src/mediawiki.skinning/content.parsoid.less