public/javascripts/yui/stylesheet/stylesheet.js
function (sel) {
            var rule,css;

            if (lang.isString(sel)) {
                // IE's addRule doesn't support multiple comma delimited
                // selectors so rules are mapped internally by atomic selectors
                rule = cssRules[sel.split(/\s*,\s*/)[0]];

                return rule ? rule.style.cssText : null;
            } else {
                css = [];
                for (sel in cssRules) {
                    if (cssRules.hasOwnProperty(sel)) {
                        rule = cssRules[sel];
                        css.push(rule.selectorText+" {"+rule.style.cssText+"}");
                    }
                }
                return css.join("\n");
            }
        }
function (sel) {
            var rule,css;

            if (lang.isString(sel)) {
                // IE's addRule doesn't support multiple comma delimited
                // selectors so rules are mapped internally by atomic selectors
                rule = cssRules[sel.split(/\s*,\s*/)[0]];

                return rule ? rule.style.cssText : null;
            } else {
                css = [];
                for (sel in cssRules) {
                    if (cssRules.hasOwnProperty(sel)) {
                        rule = cssRules[sel];
                        css.push(rule.selectorText+" {"+rule.style.cssText+"}");
                    }
                }
                return css.join("\n");
            }
        }
function ( sel ) { var rule , css ; if ( lang . isString ( sel ) ) { // IE's addRule doesn't support multiple comma delimited // selectors so rules are mapped internally by atomic selectors rule = cssRules [ sel . split ( / \s*,\s* / ) [ 0 ] ] ; return rule ? rule . style . cssText : null ; } else { css = [ ] ; for ( sel in cssRules ) { if ( cssRules . hasOwnProperty ( sel ) ) { rule = cssRules [ sel ] ; css . push ( rule . selectorText + " {" + rule . style . cssText + "}" ) ; } } return css . join ( "\n" ) ; } }
Get the current cssText for a rule or the entire sheet.  If the
selector param is supplied, only the cssText for that rule will be
returned, if found.  If the selector string targets multiple
selectors separated by commas, the cssText of the first rule only
will be returned.  If no selector string, the stylesheet's full
cssText will be returned.

@method getCssText
@param sel {String} Selector string
@return {String}
Get the current cssText for a rule or the entire sheet . If the selector param is supplied only the cssText for that rule will be returned if found . If the selector string targets multiple selectors separated by commas the cssText of the first rule only will be returned . If no selector string the stylesheet s full cssText will be returned .