Bug 108820 - "font-family" ignored within <span> tags when followed by "font-family /**/:inherit" (Wikipedia)
Summary: "font-family" ignored within <span> tags when followed by "font-family /**/:i...
Status: RESOLVED DUPLICATE of bug 47682
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-09 19:34 UTC by David P James
Modified: 2005-07-10 03:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***