From the blog:
The basic idea with CSS expressions is that you will have a calculation and dynamic values ββfor the properties in the CSS code, something that people found very useful. A simple example can implement the max-width behavior in IE 6:width: expression(document.body.clientWidth > 1100)? "1100px" : "auto";
The basic idea with CSS expressions is that you will have a calculation and dynamic values ββfor the properties in the CSS code, something that people found very useful. A simple example can implement the max-width behavior in IE 6:
width: expression(document.body.clientWidth > 1100)? "1100px" : "auto";
This is the first time I read about them. It seems that IE was used to support CSS expressions, but dropped them in IE8. What other browsers still use them, and are they generally good or bad?
blog post I got this from the fact that Javascript is an alternative, but I thought CSS was more supported and therefore better than Javascript.
AFAIK, IE6/7 () 5.
, . , JavaScript .
JavaScript, , JS .
, ...
... - , , 1100px, 1100px, auto.
, , JavaScript.
IE 8:
http://msdn.microsoft.com/en-us/library/cc304082(VS.85).aspx#expressions
:
http://msdn.microsoft.com/en-us/library/ms537634(v=VS.85).aspx
Firefox has a similar setup, XBL is to check this answer to a very similar question . HTML5 editor Ian Hickson recently pushed a little to launch a new project for W3C to standardize XBL (see also WG's answer ), so in the end we will see something similar to Microsoft's expressions as part of the HTML5 technology family.