tags:

views:

87

answers:

2
.newEventItem .eventDateInfo .eventVenue
{
    display: block;
    color: #CCC;
    overflow: hidden;
    height: expression(this.scrollHeight > 27 ? "30px" : "auto");//is css support this?
    max-height: 30px;
}
+2  A: 

This is not something supported by CSS. It is a propriety Microsoftism.

It means "If this.scrollHeight is more than 27, set this property to 30px otherwise set it to auto". I think it is an attempt to simulate max-height in IE6.

David Dorward
+1  A: 

This is actually IE's Dynamic Property.

It allows you to set a CSS property not to a constant, but to the result of a JavaScript expression

You can read more in this msdn article

About Dynamic Properties

As of Windows Internet Explorer 8, dynamic properties have been deprecated and are only supported for Web pages displayed in IE5 mode or IE7 mode.

Also read this one

Ending Expressions

Design criteria such as standard compliance, performance, reliability and security framed the design of IE8 as whole, for new as well as existing features. As a result, CSS expressions are no longer supported in IE8 standards mode.

rahul