From e9c1521fcafa09e50c54765d2d6154863bd55a42 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Tue, 21 Jul 2015 09:58:32 +0000 Subject: [PATCH] Use display: inline-block instead of unicode-bidi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On I16a701f3b962b5e7f63554be2f28888a938548b0 we incorporated unicode-bidi: embed; instead isolate but it caused regression on * https://fa.wikipedia.org/?oldid=15565588 * https://fa.wikipedia.org/?oldid=15552160 where references ([۱]) comes before number with Persian digits. Using unicode-bidi: isolate; is the clean solution for fixing this however due to Firefox bug https://bugzilla.mozilla.org/1185987 it is not going to fix the regression on Firefox so using display: inline-block; in hope to get same effect with Chrome on unicode-bidi: isolate; but also support IE and older browsers. Change-Id: I1d62c1fb282acc72ab20d71cc8cd21e3e1d71493 --- modules/ext.cite.styles.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ext.cite.styles.css b/modules/ext.cite.styles.css index 465dbb272..9215a2bef 100644 --- a/modules/ext.cite.styles.css +++ b/modules/ext.cite.styles.css @@ -8,7 +8,10 @@ /* Make sure the brackets and the numbers aren't jumbled after LTR words in RTL wikis */ sup.reference { - unicode-bidi: embed; + /* Ideally unicode-bidi: isolate should be used here, + however due Firefox bug https://bugzilla.mozilla.org/1185987 + we use inline-block to replicate the effect */ + display: inline-block; } /* Highlight clicked reference in blue to help navigation */