The Exclamation Invalid Filter

Or, the WebKit Build 85 Stiletto

This should be green not red

It is green in:

It is red in:

The CSS used is:

p.thing {color:green;}
.doofus ! p.thing/**/ {color:red;}

It is based on one of the tests of forward-compatible parsing in the W3C CSS1 Test Suite, combined with a comment that hides the second rule from IE 4.0 and 5.0 for Windows. It is not valid according to the W3C CSS validator, as the exclamation point in not a recognised operator in any current version of CSS. Thanks to Tony Leggett and Chris Nott for testing.

CodeBitch
11 February 2004