[cl1] The first four words in this sentence should be subscript-aligned. The font size of the superscripted text should not be different from that of the parent element.

[cl2] The first four words in this sentence should be superscript-aligned. The font size of the subscripted text should not be different from that of the parent element.

[cl3] The first four words in this sentence should be top-aligned, which will align their tops with the top of the tallest element in the line (probably the orange rectangle).

[cl4] The first four words in this sentence should be text-top-aligned, which should align their tops with the top of the tallest text in the line.

[cl6] The first four words in this sentence should be 15px in size and bottom-aligned, which should align their bottom with the bottom of the lowest element in the line.

[cl7] The first eight words ("eight" has a descender) in this sentence should be 15px in size and text-bottom-aligned, which should align their bottom with the bottom of the lowest text (including descenders) in the line.

[cl8] The first four words in this sentence should be 15px in size and baseline-aligned, which should align their baseline with the baseline of the rest of the text in the line.

[cl9] The first four words in this sentence should have a font-size of 15px and a line-height of 20px; they are also 50%-aligned, which should raise them 10px relative to the natural baseline.

In the following paragraph, all images should be aligned with the top of the 15-pixel text, which is identical to the first section of text, whereas any size text should be aligned with the text baseline (which is the default value).

[ttopalign] This paragraph
contains many imagesof varying heightsand widths
all of which
should be aligned
with the top of
a 15-pixel text elementregardless of the line in whichthe images appear.

In the following paragraph, all images should be aligned with the middle of the default text, whereas any text should be aligned with the text baseline (which is the default value).

[midalign] This paragraph
contains many images
of varying heights
and widths
all of which
should be aligned
with the middle ofa 15-pixel text elementregardless of the line in whichthe images appear.

In the following paragraph, all elements should be aligned with the top of the tallest element on the line, whether that element is an image or not. Each fragment of text has been 'span'ned appropriately in order to cause this to happen.

[topalign]
This paragraphcontains many imagesand some textof varying heightsand widthsall of whichshould be alignedwith the top ofthe tallest element inwhichever line the elements appear.