Sha256: ed1bc32c61cfbfd01aafc26f914d7396ee7db6277ab9da28ff84a9d973cfc890

Contents?: true

Size: 454 Bytes

Versions: 11

Compression:

Stored size: 454 Bytes

Contents

/*
*	css.js
*/
$debug("Initializing Window CSS");
// returns a CSS2Properties object that represents the style
// attributes and values used to render the specified element in this
// window.  Any length values are always expressed in pixel, or
// absolute values.

$w.getComputedStyle = function(elt, pseudo_elt){
  //TODO
  //this is a naive implementation
  $debug("Getting computed style");
  return elt?elt.style:new CSS2Properties({cssText:""});
};

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
envjs19-0.3.8.20101029121421 src/window/css.js
envjs-0.3.8 src/window/css.js
envjs-0.3.7 src/window/css.js
envjs-0.3.6 src/window/css.js
envjs-0.3.5 src/window/css.js
envjs-0.3.4 src/window/css.js
envjs-0.3.3 src/window/css.js
envjs-0.3.2 src/window/css.js
envjs-0.3.1 src/window/css.js
envjs-0.3.0 src/window/css.js
envjs-0.2.0 src/window/css.js