On Thu, Jul 19, 2012 at 12:20 PM, Arioch
<AriochThe(a)gmail.com> wrote:
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 ?
It's called CSS Reset, and it's a technique used all over the web.
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.
IE6 and 7 are not supported any more.
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:
As per
http://www.w3.org/TR/CSS21/fonts.html#algorithm the browser
should first try Courier and if it doesn't support it then it should
fall back on Monospace which is next on the font-family list. The fact
that IE9 stops at Courier font means that it is supported. The fact
that the text is badly displayed is IMO a IE9 bug.
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.
Probably because IE9 doesn't support "courier new".
Font names with spaces in them should be placed in quotes. Try:
font-family: "Courier New", monospace;
I guess the fix is in your case to just remove the
Courier font from
the value of the font-family CSS property.
Hope this helps,
Marius
> 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.