Tutorials Bugs Masterclass Free stuff Test pages Proposals

Core tests

Advanced tests

This test

RichInStyle.com tests: adjacent siblings 2

Anonymous intervening content test

This tests that matching is done on a document tree basis.

  1. Not red. Not red. Red. (SPAN + I {color: red} with SPAN and I separated by anonymous content)

  2. Not red.Red. (SPAN + I {color: red} with SPAN and I not separated by anonymous content).

  3. Not red. Red. (SPAN + I {color: red} with SPAN and I separated by space).

  4. Not red
    Some intervening anonymous content that shouldn't be red.
    Red

  1. This should not be green.(#con P+P + P + P {color: green})

    This should not be green.(#con P+P + P + P {color: green})

    This should not be green.(#con P+P + P + P {color: green})

    This should be green.(#con P+P + P + P {color: green})


  1. This should not be green.(#cont P+P{color: green}), but the empty P should be ignored. If it is green, it demonstrates an HTML bug rather than a CSS one.