Substring matching attribute selectors

This text should be red

This text should be green

This text should be blue

:root

If this page has a shaded background, then the selector is supported.

:nth-child(n)

Lorem ipsum and dolor and this text should be blue and this text not.

:nth-last-child(n)

Lorem ipsum and dolor and this text should be green and this text not.

:nth-of-type(n)

Lorem ipsum and dolor and this text should be red and this text not.

:nth-last-of-type(n)

Lorem ipsum and dolor and this text should be blue and this text not.

:last-child

Lorem ipsum and dolor and this text should be normal and this text should be green.

:first-of-type

Lorem ipsum and dolor and this text should be red and this text not.

:last-of-type

Lorem ipsum and dolor and this text should be normal and this text should be blue.

:only-child

I'm alone, so this text should be green. Sigh...

:only-of-type

Here I am, and this text should be red but this not.

:empty

The following paragraph should have a yellow background.

:target

Link to some text that should become red after clicking on the link.

:enabled

The following textfield should have a white background and a 1 pixel black border.

:disabled

When disabled, the following radio button should have a grey background.

:checked

Once checked, the following checkbox should have a yellow background.

::selection

Once selected, the word Nugae! should have a yellow background.

Ibam forte via sacra sicut meus est mos. Igitur vidi Caesarem longe cubantem prope Caesaris hortos. Nugae! Sed omnis mundi creatura quasi liber et pictura nobis est et speculum.

:not(s)

This is an emphasis and this is a stronger emphasis. But this text should be blue.

General sibling combinator

Lorem ipsum dolor and pain and this text should be green.