mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
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:
parent
0ffd654bed
commit
f4531e8cd1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue