Last modified: 2007-08-21 23:28:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11019 - CSS for IPA class missconfigured
CSS for IPA class missconfigured
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-21 23:10 UTC by Lukáš Vacek
Modified: 2007-08-21 23:28 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Lukáš Vacek 2007-08-21 23:10:30 UTC
Hello mediawiki team,
I've found IPA characters in Konqueror (khtml - what about webkit - safari?) aren't rendered as good as in Mozilla Firefox. I looked to generated css files and saw definition:
.IPA {
        font-family: "Chrysanthi Unicode", "Doulos SIL", Gentium, GentiumAlt, Code2000, "TITUS Cyberbit Basic", "DejaVu Sans", "Bitstream Cyberbit", "Arial Unicode MS", "Lucida Sans Unicode", "Hiragino Kaku Gothic Pro", "Matrix Unicode";
        font-family /**/:inherit;
}

According to http://www.w3.org/TR/REC-CSS2/cascade.html#cascading-order 6.4.1 - rule 4
"if two rules have the same weight, origin and specificity, the latter specified wins."
In this class, font-family of parent object overrides that nice definition of UTF8 IPA capable fonts. You can use !important keyword and change first line to 
        font-family: "Chrysanthi Unicode", "Doulos SIL", Gentium, GentiumAlt, Code2000, "TITUS Cyberbit Basic", "DejaVu Sans", "Bitstream Cyberbit", "Arial Unicode MS", "Lucida Sans Unicode", "Hiragino Kaku Gothic Pro", "Matrix Unicode" !important;
or define that list of ipa fonts as second one. 

Same problem is with classes Unicode, latinx, polytonic, mufi, lang(*) and several others.

By the way, I used rule below for IPA UTF8 fonts. You can add this font to your list too, but I don't think it helps anybody. 
font-family: Junicode, FreeSans,FreeMono, FreeSerif, DejaVu Sans Mono, ClearlyU, Arev Sans;
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-08-21 23:15:56 UTC
Please tell the sysops of the appropriate wiki, e.g., at http://en.wikipedia.org/wiki/MediaWiki_talk:Common.css .  Developers and sysadmins do not control this custom CSS.

Incidentally, the behavior you note is intended.  Internet Explorer 6 (I think not 7) is the only major browser that doesn't substitute in appropriate glyphs where they don't exist in the current font.  Incidentally, it also doesn't parse comments correctly.  Thus it ignores the second rule as malformed and uses the fonts specified, while more intelligent browsers are free to use their own selection rules because they correctly interpret the second rule as overriding the first.  This is what's known as a "CSS hack".
Comment 2 Lukáš Vacek 2007-08-21 23:28:45 UTC
It would be better specify IPA capable font for all browsers, not just for IE, then rely on magic substitution. KHTML and maybe webkit has problem with this too - not just internet explorer.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links