Timonwa Akintokun
Developer | Writer | Creator
This is nice. I did not know that the text-decoration property can be broken down like that to solve this issue of browser compatibility.. Thanks for sharing. I gain a lot from this article
This has been an issue since Netscape and IE were around. Things now are way better than they were before, but developers are much less caring about it and let a framework take care of it. It baffles me that this is something "new".
This was great, I always make it a habit of writing the long form of a CSS property instead of the shorthand. And I started doing this because of the transition property. Some people tend to set the transition property to "all" which whichs transitions all the properties of an element even when it is only one of the property they want to transition. That makes waste of the browsers resources especially when they use transition:all; on a lot of elements. So I figured that using background : red; for example, could do the same to the browser resources also. If I am only going to use a shorthand to define just one property, then I should use the long form instead. It's good to know that shorthand does actually cause compatibility issues.