2.1.90 [CSS-Level2-2009] Section 15.3, Font family: the 'font-family' property


The specification states:

 Value:                 [[ <family-name> | <generic-family> ] [, <family-name>| 
 <generic-family>]* ] | inherit
 Initial:               depends on user agent 
 Applies to:            all elements  
 Inherited:             yes  
 Percentages:           N/A  
 Media:                 visual  
 Computed value:        as specified

Quirks Mode and IE7 Mode (All Versions)

The inherit value of the font-family property is not supported.


The specification states:

 Font family names must either be given quoted as strings, or unquoted as a sequence of one or more identifiers. This means most punctuation characters and digits at the start of each token must be escaped in unquoted font family names. 

Quirks Mode and IE7 Mode (All Versions)

An attempt is made to match font-family names that contain the following unescaped characters:

  • parentheses ()

  • brackets []

  • braces {}

  • single quotation marks ' '

  • double quotation marks " "

  • semicolons ;

  • exclamation marks !

  • leading slashes /

IE8 Mode (All Versions)

Non-escaped parentheses within font-family names are considered valid values and do not throw out the entire declaration.

Full font names are matched even though only font family names should be used for matching.


The specification states:

 The keywords 'initial' and 'default' are reserved for future use and must also be quoted when used as font names. UAs must not consider these keywords as matching the '<family-name>' type.

IE8 Mode (All Versions)

The default keyword is not treated as a reserved word.