I need some clarifiction on applying expressions in css. Some are suggesting don't go for using css expressions. Please clarify my doubt. thanks
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- jQuery hover to slide?
- Issue with star rating css
You should not use CSS expressions since they are constantly evaluated on many user interactions across the web page.
Also, Microsoft as deprecated this feature due to this type of complications since IE 8.
Please see the following articles:
From an article published by Steve Souders at YDN
High Performance Web Sites: Rule 7 – Avoid CSS Expressions
From the MSDN:
Important
You can see a simple test made to
CSS expressions
performance here!http://msdn.microsoft.com/en-us/library/ms537634(v=vs.85).aspx
I think this should be enough to answer. I wouldn't recommend to use them.