Which browsers still support CSS expressions

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";

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.

+5
source share
3 answers

AFAIK, IE6/7 () 5.

, . , JavaScript .

JavaScript, , JS .

, ...

width: expression(document.body.clientWidth >  1100)? "1100px" : "auto";

... - , , 1100px, 1100px, auto.

, , JavaScript.

+6

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.

+2
source

All Articles