vertical-align, inline-blocks and line-height

In the following test cases, six inline-blocks (colored rectangles) are vertically positioned with the following values for vertical-align:

First case, line-height: 2

gQfxÈ

Second case, line-height: normal

gQfxÈ

Third case, line-height: 0.5

gQfxÈ

Fourth case, line-height: 0.5, without text-top, text-bottom

gQfxÈ

Fifth case, line-height: 0.5, without top, bottom, ...

gQfxÈ

Sixth case, line-height: 0.5, without inline-blocks

gQfxÈ

Notes:

Related tests:

CSS tests home