CSS Parsing error on selectors

Discussion in 'Internet Explorer' started by Don Giusuppe, Aug 6, 2009.

  1. Don Giusuppe

    Don Giusuppe Guest

    In the example below, the last "root-"div will be rendered in red, while it
    shouldn't be:

    <html><head><style><!--

    ..test .yes { color: green; }
    ..test.no { color: red; }

    --></style></head><body>
    <div class="test yes">YES</div>
    <div class="test"><div class="yes">YES</div></div>

    <div class="test no">NO</div>
    <div class="test"><div class="no">NO</div></div>
    </body></html>
     
    Don Giusuppe, Aug 6, 2009
    #1
    1. Advertisements

  2. Don Giusuppe

    Don Giusuppe Guest

    Win Vista 64-bit, IE 8.0.6001.18813

    Other browsers like Firefox, Opera, Safari & Chrome display the last div in
    black.
     
    Don Giusuppe, Aug 6, 2009
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.