This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3735 - Parse Error
Summary: Parse Error
Status: RESOLVED INVALID
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (show other bugs)
Version: CSS Validator
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-16 04:44 UTC by Aleksandar Dulović
Modified: 2006-09-18 11:48 UTC (History)
0 users

See Also:


Attachments

Description Aleksandar Dulović 2006-09-16 04:44:43 UTC
top: expression(document.body.scrollTop + document.body.clientHeight - offsetHeight);

The above is a CSS expression I use often for keeping the footer stuck to the botom of the page.

For some reason the validator returns the following error:
Invalid number : top Parse Error

I really would appreciate some clarification as to the status of CSS expressions.
Comment 1 Robin Whittleton 2006-09-18 11:48:34 UTC
The 'expression' syntax is a Microsoft invention and not part of CSS. Seeing as this is an IE-only statement you could move it to a seperate stylesheet using conditional comments ( http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp ). The stylesheet with the expression statement in will still be invalid, but it won't be picked up by the validator or other browsers.

--> INVALID