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
This commit is contained in:
Moriel Schottlender 2013-12-31 09:43:44 -05:00
parent 0ffd654bed
commit f4531e8cd1

View file

@ -57,10 +57,15 @@ figure[typeof*='mw:Image'] a {
} }
/* TODO: Merge with div.tright styles */ /* 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 { figure[typeof*='mw:Image'].mw-halign-right {
/* @noflip */
clear: right; clear: right;
/* @noflip */
float: right; float: right;
/* @noflip */
margin: .5em 0 1.3em 1.4em; margin: .5em 0 1.3em 1.4em;
} }
@ -70,10 +75,15 @@ figure[typeof*='mw:Image'].mw-halign-center {
} }
/* TODO: Merge with div.tleft styles */ /* 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 { figure[typeof*='mw:Image'].mw-halign-left {
/* @noflip */
clear: left; clear: left;
/* @noflip */
float: left; float: left;
/* @noflip */
margin: .5em 1.4em 1.3em 0; margin: .5em 1.4em 1.3em 0;
} }