CSS Simplified Box Model Hack
If the background color of this paragraph is green (a darker
green than this page's background) then the hack was applied.
Example Code
p.test {
background-color: #f66;
bac\kground-color: #6f6;
}
List of browsers that apply this
- IE6+, when in either rendering mode
- Firefox
- NS6.0-7.2
- NS4.x
- Opera 6+
- Safari
- Konqueror 3
- iCab 3
- IE5/Mac
List of browsers that do not apply this
Notes
- This does not work if the backslash ("\") used to escape the character
immediately preceds any character used in hexadecimal ("hex") numbers,
which are 0 through 9 and A through F (both lower and upper case).
- If you escape the first character in a property name, that's a different
hack.
- If IE6 and/or IE7 are rendering the page in backward's compatibility mode
(aka quirks mode) then this hack may not have the intended affect.
- This hack causes NS4.x to ignore the whole stylesheet that contains
it.
- Opera 5 (I don't know about versions 1 through 4.) ignores the rule that
contains it.