2
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
3
Code licensed under the BSD License:
4
http://developer.yahoo.net/yui/license.txt
7
YUI.add('node-style', function(Y) {
10
* Extended Node interface for managing node styles.
12
* @submodule node-style
16
Y.Node.addDOMMethods([
18
* Returns the style's current value.
20
* @param {String} attr The style attribute to retrieve.
21
* @return {String} The current value of the style property for the element.
26
* Returns the computed value for the given style property.
27
* @method getComputedStyle
28
* @param {String} attr The style attribute to retrieve.
29
* @return {String} The computed value of the style property for the element.
34
* Sets a style property of the node.
36
* @param {String} attr The style attribute to set.
37
* @param {String|Number} val The value.
43
* Sets multiple style properties on the node.
45
* @param {Object} hash An object literal of property:value pairs.
53
}, '3.0.0pr1' ,{requires:['dom-style', 'node-base']});