Bug 108820

Summary: "font-family" ignored within <span> tags when followed by "font-family /**/:inherit" (Wikipedia)
Product: [Applications] konqueror Reporter: David P James <davidpjames>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David P James 2005-07-09 19:34:26 UTC
Version:            (using KDE KDE 3.4.1)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When visiting sites where a font-family is specified within a <span> tag (eg. at Wikipedia for IPA symbols), Konqueror ignores the fonts specified in the <span> tag and continues to try to use the font specified in its Settings, resulting in little boxes. This seems to be the result of the "font-family /**/:inherit" in the following tag from a Wikipedia enty:

<span title="This is an IPA transcription of pronunciation. See International Phonetic Alphabet." class="IPA" style="white-space: nowrap; font-family:'Doulos SIL', 'Code2000', 'Chrysanthi Unicode', 'Gentium', 'GentiumAlt', 'TITUS Cyberbit Basic', 'Bitstream Vera', 'Arial Unicode MS', 'Bitstream Cyberbit', 'Lucida Sans Unicode', 'Hiragino Kaku Gothic Pro'; font-family /**/:inherit; text-decoration: none">[ɹ]</span>

The "font-family /**/:inherit" bit is overriding the previous "font-family:..." bit, whereas this is not occurring with Mozilla. If you create a test page without it Konqueror will display the Gentium or whichever font you have installed.

http://en.wikipedia.org/wiki/IPA_chart_for_English
Comment 1 Maksim Orlovich 2005-07-10 03:19:32 UTC
The CSS handling is right here, and mozilla does the same -- later rules override earlier ones. It's just our (well, Qt's) glyph substitution sucks.


*** This bug has been marked as a duplicate of 47682 ***