On Thu, 19 Feb 2009 20:27:43 -0500, David Laakso wrote:
> Sarah Atkinson wrote:
>> Found this in one of the css files a co worker sent me with his design
>> templete. What is it for? Anyone know? Is it legal? And what is with the *
>>
>> * html #facebox_overlay { /* ie6 hack */  position: absolute;  height:
>> expression(document.body.scrollHeight > document.body.offsetHeight ?
>> document.body.scrollHeight : document.body.offsetHeight + 'px'); }
>>
>
> Its an "IE expession, " DHTML being feed to IE/6 and down-- no support for
> min/max width or height (many such variations available) depending on the
> specific need. They are usually hid from the w3c Validation Service by
> enclosing in a "Conditional Comment."
> <http://msdn.microsoft.com/en-us/library/ms537512(VS.85).aspx>

So-called conditional comments seemed nice, until I wound up with
four additional style sheets just for IE. So I do wonder about the
utility of hiding CSS from the validator?

I mean, I can and do make mistakes in those hidden style sheets
that the validator could catch. As for the non-validating code, well,
my British English spell checker tells me that "color" is spelled
wrongly, but in the context of an article about CSS I would simply
ignore the "error". What is so special about CSS that I need to trick
the validator just to get a passing grade?

Just wondering.

Cordially,
David
--


______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to