CSS2 Test Suite: 15.2.2 font-family

[index page] [section] [Previous] [Next] [Specification]

The style declarations contained within this page:

DIV.one {font-family: monospace;}
.cl1 {font-family: serif;}
.cl2 {font-family: sans-serif;}
.cl3 {font-family: cursive;}
.cl4 {font-family: fantasy;}
.cl5 {font-family: monospace;}
.cl6 {font-family: sans-serif,cursive;}
.cl7 {font-family: monospace,serif;}
div.parent {font-family: sans-serif;}
div.inh1 {font-family: cursive;}
div.inh2 {font-family: monospace;}


This sentence is normal for the second division, which is the next five paragraph elements; it should be dislpayed using a monospace font.

[cl1] This sentence should be in a serif font.

[cl2] This sentence should be in a sans-serif font.

[cl3] This sentence should be in a cursive font.

[cl4] This sentence should be in a fantasy font.

[cl5] This sentence should be in a monospace font.

[cl6] This sentence should be in a sans-serif font, not cursive.

[cl7] This sentence should be in a monospace font, not serif.


[div.parent] This DIV has been set with parental styles. The inline elements within this DIV are enclosed in square brackets in order to more easily discern their placement.
[div.inh1] This DIV should use a sans-serif font for its display, as it has a style attribute set to inherit the font-family value. [/div.inh1]
[div.inh2] This DIV should use a sans-serif font for its display, as it has a style attribute set to inherit the font-family value. [/div.inh2]
This is the end of the parent DIV. [/div.parent]

[index page] [section] [Previous] [Next] [Specification]