Fabrice's Inversion
Test of Filter
This text will be green if the rule has been applied.
Code Syntax
/*/*//*/
#testElement {
color: #00CC00; /* */
}
/* */
Browser Support/Behaviour
Applied by:
- Windows Netscape 4.0
- Mac Classic Netscape 4.0
Not applied by:
- Win/Mac Mozilla 1.6
- Win/Mac Mozilla 1.2-1.5
- Win/Mac Mozilla 1.0-1.1
- Windows Internet Explorer 7b
- Windows Internet Explorer 6.0
- Windows Internet Explorer 5.5
- Windows Internet Explorer 5.0
- Windows Internet Explorer 4.0
- Windows Netscape 6.0
- Windows Opera 8.0
- Windows Opera 7.5
- Windows Opera 7.0
- Windows Opera 6.0
- Mac OSX Internet Explorer 5.2
- Mac OSX Opera 8.5
- Mac OSX Opera 7.5
- Mac OSX Opera 6.0
- Mac OSX Safari 2.0
- Mac OSX Safari 1.2
- Mac OSX Safari 1.1
- Mac OSX Safari 1.0
- Mac OSX OmniWeb 5.1
- Mac OSX OmniWeb 4.2
- Mac Classic Internet Explorer 5.1
- Mac Classic Internet Explorer 5.0
- Mac Classic Opera 6.0
- Unix Konquerer 3.0
Special Notes
Standards-compliant browsers see the contents of this hack as a comment and will not apply those declarations (so the text in the example block should be red in compliant browsers).
This hack can also be used to hide single or multiple declarations within one rule (as opposed to whole rules as shown in the example).
More information