Jul
30
Just as the panel discussed getComputedStyle and how each browser returns something different, Erik Arvidsson blogged about Computed vs Cascaded Style. Erik discusses the difference between computed, cascaded, and override styles. He shows us why this common function is bad: PLAIN TEXT JAVASCRIPT: function getStyle(el, prop) { if (document.defaultView && document.defaultView.getComputedStyle) { return document.defaultView.getComputedStyle(el, null)[prop]; } else if […]
More: continued here































