Fossil

View Ticket
Login
2009-10-11
19:49 Fixed ticket [aba72eaa58]: Default CSS style has "wrong" font-family. plus 2 other changes ... (artifact: 31f46d7564 user: drh)
19:47
Fix to the "font-family" CSS line in the default CSS. Ticket [aba72eaa589]. ... (check-in: adb155b6d4 user: drh tags: trunk)
19:01 New ticket [aba72eaa58] Default CSS style has "wrong" font-family.. ... (artifact: c4ee22b8cd user: anonymous)

Ticket Hash: aba72eaa589a69b0efc1a2346b429705f7ee59c1
Title: Default CSS style has "wrong" font-family.
Status: Fixed Type: Feature_Request
Severity: Cosmetic Priority:
Subsystem: Resolution: Fixed
Last Modified: 2009-10-11 19:49:45
16.48 years ago
Created: 2009-10-11 19:01:32
16.48 years ago
Version Found In: b99aa66d1f
Description:
Default CSS style has font family defined as follows:

font-family: "sans serif";

While "sans serif" is an actual name of font in some Linux installations, this doesn't work for e.g. Safari on Mac -- it falls back to the default serif font (Times New Roman).

The proper way to define a generic sans-serif font in CSS, according to CSS specs http://www.w3.org/TR/CSS21/fonts.html#sans-serif-def is this:

font-family: sans-serif;

Note the dash and absence of quotes (from specs: Generic font family names are keywords and must NOT be quoted).


drh added on 2009-10-11 19:49:45:
Check-in [adb155b6d490a9ee3f97201cfa5911bbe8908801]