title: Simple getComputedStyle in Prototype JS?
body: <p>Is there an easy cross-browser way to get computed style of an element in PrototypeJS, without checking document.defaultView... and other properties? ...so that the code looked like</p>
  
  <pre><code>var elt = $$('.xyz')[k],
      border = elt.getComputedStyle('border-bottom-width')
  </code></pre>
  
  <p>PrototypeJs provides <code>getDimensions</code>, <code>-Width</code>, and <code>-Height</code> methods that return <strong>computed</strong> dimensions, but there's no way to get other computed styles, like borders, backgrounds, etc.</p>
  
  <p>I've found several stand-alone <a href="http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/" rel="nofollow noreferrer">implementations</a> of getComputedStyle, but maybe there's a patch/plugin for PrototypeJS that does that?</p>