dom-style.js revision b55b141ccc709c4288c8b28cf63eb829101418e3
8ce0f95d343cc9a7374985d6bd7e085505701dc4isaacs * Add style management functionality to DOM.
8ce0f95d343cc9a7374985d6bd7e085505701dc4isaacs * @module dom
8ce0f95d343cc9a7374985d6bd7e085505701dc4isaacs * @submodule dom-style
if (style) {
if (val === null) {
if (style) {
return val;
}, Y.DOM);
return val;
return val;
return val;
RE = RegExp;
Y.Color = {
KEYWORDS: {
return val;
val = [
} catch(err) {
var current,
ComputedStyle = {
CUSTOM_STYLES: {},
if (el) {
return value;
if (!el.style[pixel] && !el.style[prop]) { // need to map style.width to currentStyle (no currentStyle.pixelWidth)
// clientHeight/Width = paddingBox (e.g. offsetWidth - borderWidth)
var value = null;
switch(property) {
case BORDER_TOP_WIDTH:
case BORDER_BOTTOM_WIDTH:
case BORDER_LEFT_WIDTH:
case BORDER_RIGHT_WIDTH:
var val = null,
return val;
var val,
var current;
IEComputed = {};