Tutorials Bugs Masterclass Free stuff Test pages Proposals

Core tests

Advanced tests

This test

RichInStyle.com tests: :first-line

  1. This should be red.

  2. This should be huge.

  3. This should not be red (only applies to block elements - a SPAN element).

  4. This should be underlined and blue.

  5. This should have a lot of extra line-height.

  6. This should not be red (pseudo not subject of selector).

  7. This should not be floated. That would be wrong and would make the browser buggy (although that's hardly anything new. Is it now?)

  8. Blue background.

    The blue background should only be behind the text, since :first-line selects the content in the first line rather than the first line itself.

  9. This should have a lot of letter spacing.
    This should look normal. This should look normal. This should look normal. This should look normal. This should look normal. This should look normal.

  10. This should have a lot of word spacing.
    This should look normal. This should look normal. This should look normal. This should look normal. This should look normal. This should look normal. This should look normal. This should look normal.

  11. This should be vertically aligned differently - raised by 3 cm.

  12. This should not have more margin. Otherwise the browser would be buggy, which isn't good (but hardly surprising).

  13. The picture is here:

    This should be flowing around the image, despite what the CSS spec states to the contrary - :first-line selects inline content, and clear has no effect on inline content.

  14. This is a test of whether the UA treats the first line of LI correctly. The marker should not be red (despite an oversight in the spec on this).

Position of pseudo-element test

  1. This first line should not be red (pseudo-element before class).