W3C home > Mailing lists > Public > www-style@w3.org > March 2011

[CSS2.1] blocks with missing end bracket and parsing error

From: Alan Gresley <alan@css-class.com>
Date: Fri, 25 Mar 2011 07:04:46 +1100
Message-ID: <4D8BA3DE.8030906@css-class.com>
To: CSS 3 W3C Group <www-style@w3.org>
Hello all,

This is a bug that I discovered tonight after a post on CSS discuss (my 
replies have to turned up yet).


What I found interesting is that in IE8 and IE9, the remainder of the 
style-sheet is thrown out. The pertinent CSS is this.

    p [ background: red }

    .test1 { background: green }

    .test2 { background: green }

All browsers drop the rule-set '.test'. IE8 and IE9 only see the above 
but the other browsers add a closing bracket ']' at the end of the first 
rule-set, like so.

     p [ background: red }]

Firstly I don't know why the second rule-set ('.test') is dropped by all 
browsers and secondly I don't know what the expected parsing behavior 
should be.

1. <http://archivist.incutio.com/viewlist/css-discuss/115234>

Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
Received on Thursday, 24 March 2011 20:05:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:44 UTC