From f4531e8cd1125d59859614e2f928b7221c88e3f2 Mon Sep 17 00:00:00 2001 From: Moriel Schottlender Date: Tue, 31 Dec 2013 09:43:44 -0500 Subject: [PATCH] Force CSSJanus to not flip image alignment classes For some reason, the class-wide /*@noflip*/ on mw-halign-left and mw-halign-right didn't 'catch' and cssjanus ended up flipping the float directions in RTL. This fix forces noflip condition on each of the lines separately, which seems to work. Bug: 50910 Change-Id: I4cddce80397d821dc3cbf40ee4b4c471890d8d35 --- modules/ve-mw/ce/styles/ve.ce.Node.css | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/ve-mw/ce/styles/ve.ce.Node.css b/modules/ve-mw/ce/styles/ve.ce.Node.css index 442cb2bb52..6aeff41f16 100644 --- a/modules/ve-mw/ce/styles/ve.ce.Node.css +++ b/modules/ve-mw/ce/styles/ve.ce.Node.css @@ -57,10 +57,15 @@ figure[typeof*='mw:Image'] a { } /* TODO: Merge with div.tright styles */ -/* @noflip */ +/* Due to a weird cssjanus bug, noflip rules + are set as single-rules rather than for the + whole class */ figure[typeof*='mw:Image'].mw-halign-right { + /* @noflip */ clear: right; + /* @noflip */ float: right; + /* @noflip */ margin: .5em 0 1.3em 1.4em; } @@ -70,10 +75,15 @@ figure[typeof*='mw:Image'].mw-halign-center { } /* TODO: Merge with div.tleft styles */ -/* @noflip */ +/* Due to a weird cssjanus bug, noflip rules + are set as single-rules rather than for the + whole class */ figure[typeof*='mw:Image'].mw-halign-left { + /* @noflip */ clear: left; + /* @noflip */ float: left; + /* @noflip */ margin: .5em 1.4em 1.3em 0; }