From 4ae23e7ae7026bc8617303e35f3afb959b77aadb Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Thu, 18 Sep 2014 11:05:26 -0500 Subject: [PATCH] Fix Parsoid's span.reference styling to match PHP's output * In Chrome (and other webkit-based browsers like phantomjs), the computed font-size for span.reference in Parsoid was 12px whereas in Firefox, it was 11px. The computed font-size for used for references for core mediawiki css is 11px in both Firefox and Chrome. I was able to pin this on the font-size: smaller vs font-size: 80% difference by inspecting in Chrome and Firefox (and also by dumping computed CSS in phantomjs). * Verified via visual-diffing on ruthenium that this fix cleans up the diffs. http://parsoid-tests.wikimedia.org/visualdiff-item/pngs/enwiki/Medha_Patkar.diff.png Change-Id: Ida67035cfb020696d2299ee26fe8d44717ffc421 --- resources/src/mediawiki.skinning/content.parsoid.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/src/mediawiki.skinning/content.parsoid.less b/resources/src/mediawiki.skinning/content.parsoid.less index 3211deafd6..a6515d2e7f 100644 --- a/resources/src/mediawiki.skinning/content.parsoid.less +++ b/resources/src/mediawiki.skinning/content.parsoid.less @@ -31,7 +31,7 @@ * Styleguide 1.1. */ span.reference { - font-size: smaller; + font-size: 80%; line-height: 1; vertical-align: super; unicode-bidi: -moz-isolate; -- 2.20.1