That only displays so in MSIE9, not in Opera 12.
However CSS inspection in MSIE is not not comfort.
Okay.
Trigger is : div.diff-container {font-family }
If i remove "courier" from there or put it after "monospace" - then
MSIE
renders more or less okay.
I'd like to note:
1) u use inherit values even on root element - HTML/BODY does it have sense
there ?
2) dunno about Chrome and Moz, but in Opera and MSIe use of inherit strikes
out all other values. IT is hard to track which value is in effect :-/ Had
to remove styles one after another.
3) inherit only supported since MSIE 8. You render out MSIE6 and MSIE 7.
Would have to try tpo push for MSIE8 upgrade if install xwiki into intranet.
4) Both MSIE9 Devtools and Opera DragonFly shoes "monospace" without qoutes
and Courier in quotes, regardless of case. So to me it suggests that
"monospace" is standard CSS value and "Courier"/"courier" is
not, probably
meaning some proprietary font *name* and then browsers think how to override
it (non standard vendor-specific behaviour). To support this idea:
4.0) as i remember, "Courier" was old raster 16-bit Windows font. Scaleable
TTf font is called "Courier New"
4.1) If i set the value "courier new, monospace" that looks in MSIE9 exactly
like "monospace" alone.
4.2) in Opera "courier new" is getting quotations exactly like
"courier"
4.3) all CSS tutorials i googled enumerate 5 standard values and Courier is
not among them.
http://www.w3schools.com/cssref/pr_font_font-family.asp
http://en.wikipedia.org/wiki/Font_family_(HTML)#Generic_font_families
4.4) Opera always had flexible font re-mapping, 10 years ago it was very
needed without encodings support.
http://help.opera.com/Linux/9.52/en/fonts.html
The screenshots are
http://imgur.com/a/UE4h5 - i feel they support this
idea.
The comparision of liens at
http://imgur.com/a/55Xrq also suggests it.
4.5) i asked a question would see
http://dev.opera.com/articles/view/fonts-for-web-design-a-primer/#comments
Same effect i see on
http://www.indeep76.com/Style/Example007/fonts.html
Funny thing, on
http://y3x.ru/sandbox/css/font-family/ it is the opposite
picture. MSIE works with Courier+monospace nicely and Opera fails.
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Diff-font-is-tp7580425p7580437.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.