Posted Feb 06, 2004 in CSS.
- Web Standards Project: Validator, heal thyself?
- Doug Bowman: Let's Be Bad
- Jeffrey Zeldman: CSS Validator
changes the rulesis broken
Despite what they say, and what has been said in response, I cannot help thinking that it is wrong to say the new behavior is in error when it says that an aural property is inappropriate for a screen media type.
In the case of Tantek's clever "Box Model Hack", conforming agents are supposed to pass over the errant rules and continue processing the rest of the declaration block. This behavior is not in violation of the official specification, but it seems to me that it should be. It just doesn't sit well with me that it is okay to throw in incorrect declarations and not get an error.
I am very much in the minority in this matter, so I'm going to leave comments closed in an attempt to avoid the inevitable howls of derision. I don't use the "Box Model Hack"; in fact I rarely use hacks of any kind, with the possible exception of the IE-busting child selector, because it doesn't feel right to me. I can usually work around most problems with an extra
div or two.