Bug 293948

Summary: WebKit fallbacks to sans despite "monospace" is presented in font-family
Product: [Frameworks and Libraries] kwebkitpart Reporter: Egor Tensin <Egor.Tensin>
Component: generalAssignee: webkit-devel
Status: RESOLVED UPSTREAM    
Severity: normal CC: adawit
Priority: NOR    
Version: 1.2.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Egor Tensin 2012-02-12 23:29:01 UTC
Version:           1.2.0 (using KDE 4.8.0) 
OS:                Linux

Webkit fallbacks to sans font even existing fonts are given in font-family attribute (e.g. "Liberation Mono") and ignores "monospace" entry.

Reproducible: Always

Steps to Reproduce:
1) Install Konqueror and KWebKitPart and set Konqueror's default rendering engine to WebKit.
2) Open some random paste on pastebin.com (which, according to Firebug, has font-family set to "Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,serif").

Actual Results:  
Paste's font is Liberation Sans (which is my sans alias).

Expected Results:  
Paste's font should be Liberation Mono (which is my monospace alias and is also specified in the middle of the list).

Konqueror + KHTML and Firefox seem to work correctly.
Comment 1 Dawit Alemayehu 2012-02-22 17:17:35 UTC
I can reproduce this problem with QtTestBrowser. As such this is an upstream issue and needs to be reported upstream against QtWebKit. See http://trac.webkit.org/wiki/QtWebKitBugs.