This page tests the font properties in CSS1. The gridlines in the background are spaced at 20 pixel intervals.
These are the five generic font families in CSS1. The text below should appear in their respecive font family:
This paragraph has 'font-style' set to 'normal' and should be upright
This paragraph has 'font-style: italic; font-family: sans-serif' and should be slanted.
This paragraph has 'font-style: italic; font-family: serif' and should be slanted.
This paragraph has 'font-style: oblique; font-family: sans-serif' and should be slanted.
This paragraph has 'font-style: oblique; font-family: serif' and should be upright.
This paragraph has 'font-variant: normal'.
This paragraph has 'font-variant: small-caps' and should therefore be set in small-caps fonts. If a small-caps variant of the font family in use is not available, the UA can generate it by scaling uppercase glyphs. As a last resort, uppercase letters will be used.
This paragraph is bold.
This paragraph is normal.
This paragraph is 'normal'This paragraph is 'bolder' so it should at least not be any lighter than the line aboveThis paragraph is 'lighter' so it should at least not be any darker than the line aboveThis paragraph is 'lighter' so it should at least not be any darker than the line aboveThis paragraph is 'lighter' so it should at least not be any darker than the line above
The table below contains P and H? elements with 'font-size' set to absolute keyword values. Text on the same row should have the same size, and the size should correspond to the keywords.
| P elements | H? elements | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
font size is set to 'xx-small' | font size is set to 'xx-small'
font size is set to 'x-small' font size is set to 'x-small'
font size is set to 'small' font size is set to 'small'
font size is set to 'medium' font size is set to 'medium'
font size is set to 'large' font size is set to 'large'
font size is set to 'x-large' font size is set to 'x-large'
font size is set to 'xx-large' font size is set to 'xx-large' |
The recomended scaling factor between the keywords above is 1.5 for screens. For bitmap fonts, the UA may want to make the table based on the available font sizes.
This paragraph is 'medium'This paragraph is 'larger' so it should at least not be any smaller than the line aboveThis paragraph is 'smaller' so it should at least not be any larger than the line aboveThis paragraph is 'smaller' so it should at least not be any larger than the line aboveThis paragraph is 'smaller' so it should at least not be any larger than the line above
In the table below, text on the same rows should have the same size:
This paragraph is 2pc. | This paragraph is 24pt. |
This paragraph is 1pc. | This paragraph is 12pt. |
This paragraph is 0.5pc. | This paragraph is 6.0pt. |
In the table below, text on the same rows should have the same size:
This paragraph is 2cm. | This paragraph is 20mm. | This paragraph is 0.78in. |
This paragraph is 1cm. | This paragraph is 10mm. | This paragraph is 0.39in. |
This paragraph is 0.5cm. | This paragraph is 5.0mm. | This paragraph is 0.19in. |
This paragraph is 0 and should not be visible.
This paragraph is 200%. | This paragraph is 2em. |
This paragraph is 100.00%. | This paragraph is 1.00em. |
This paragraph is 50%. | This paragraph is 0.5em. |
This paragraph is 25%. | This paragraph is 0.25em. |
This paragraph is 10%. | This paragraph is 0.1em. |
The text strings below denote the values that should be derived from the shortcut 'font' declarations:
All declarations set on the text below are invalid and should be ignored. I.e., all text should be upright, monospace, have normal width and use the same font size.