Bug 17069 - CSS: Request for proprietary extension to generic font families 1: 'monospace'
: CSS: Request for proprietary extension to generic font families 1: 'monospace'
Status: NEW
Product: WebKit
Classification: Unclassified
Component: CSS
: 528+ (Nightly build)
: Macintosh Mac OS X 10.5
: P2 Enhancement
Assigned To: Nicholas Shanks
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-29 13:29 PST by Nicholas Shanks
Modified: 2011-09-26 20:15 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Shanks 2008-01-29 13:29:54 PST
I would like the 'monospace' generic family to be seen as orthogonal to 'serif' and 'sans-serif' in the generic font-family fallback keywords.

I envisage sites using it in this way:

code { font-family: "Consolas", monospace serif, monospace; }

Where WebKit would recognise monospace serif as meaning 'use Courier, not Monaco'. Other browsers would look for a font called 'monospace serif', not find one, and fall back to the generic of monospace.
WebKit would ned to be hard‐coded with lists of Monospace fonts (which I believe it already has) but divided up into serif and sans‐serif.