CSS2 Test Suite: 15.2.4 font-size

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

The style declarations contained within this page:

.cl1 {font-size: medium;}
.cl2 {font-size: larger;}
.cl3 {font-size: smaller;}
.cl4 {font-size: xx-small;}
.cl5 {font-size: x-small;}
.cl6 {font-size: small;}
.cl7 {font-size: large;}
.cl8 {font-size: x-large;}
.cl9 {font-size: xx-large;}
.cl10 {font-size: 0.5in;}
.cl11 {font-size: 1cm;}
.cl12 {font-size: 10mm;}
.cl13 {font-size: 18pt;}
.cl14 {font-size: 1.5pc;}
.cl15 {font-size: 2em;}
.cl16 {font-size: 3ex;}
.cl17 {font-size: 25px;}
.cl18 {font-size: 200%;}
.cl19 {font-size: -0.5in;}
div.parent {font-size: medium;}
div.inh1 {font-size: xx-small;}
div.inh2 {font-size: xx-large;}


This paragraph element is unstyled, so the size of the font in this element is the default size for this user agent.

[cl1] The font of this paragraph has been set to medium, which may or may not be the same size as unstyled text.

[cl2] The font of this paragraph should be larger than unstyled text.

[cl3] The font of this paragraph should be smaller than unstyled text.

[cl4] The font of this paragraph should be very small, but the last three words in the sentence [cl1] should be medium.

[cl5] The font of this paragraph should be rather small, but the last three words in the sentence [cl1] should be medium.

[cl6] The font of this paragraph should be small, but the last three words in the sentence [cl1] should be medium.

[cl7] The font of this paragraph should be large, but the last three words in the sentence [cl1] should be medium.

[cl8] The font of this paragraph should be rather large, but the last three words in the sentence [cl1] should be medium.

[cl9] The font of this paragraph should be very large, but the last three words in the sentence [cl1] should be medium.

[cl10] The font of this paragraph should be half an inch tall.

[cl11] The font of this paragraph should be one centimeter tall.

[cl12] The font of this paragraph should be ten millimeters tall.

[cl13] The font of this paragraph should be eighteen points tall.

[cl14] The font of this paragraph should be one and one half picas tall.

[cl15] The font of this paragraph should be two em tall.

[cl16] The font of this paragraph should be three ex tall.

[cl17] The font of this paragraph should be twenty-five pixels tall.

[cl18] The font of this paragraph should be twice normal size.

[cl19] The font of this paragraph should be normal size, since no negative values are allowed and therefore should be ignored.


[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 medium-size font for its display, as it has a style attribute set to inherit the font-size value. [/div.inh1]
[div.inh2] This DIV should use a medium-size font for its display, as it has a style attribute set to inherit the font-size value. [/div.inh2]
This is the end of the parent DIV. [/div.parent]

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