Fx.CSS not support the rules in a crossdomain css file; when you ues the
selector as options,
cause limite of browser.

this is codes about you question

Fx.CSS = new Class({

        Extends: Fx,

        .....

search: function(selector){
if (Fx.CSS.Cache[selector]) return Fx.CSS.Cache[selector];
var to = {};
Array.each(document.styleSheets, function(sheet, j){
var href = sheet.href;
if (href && href.contains('://') && !href.contains(document.domain)) return;
var rules = sheet.rules || sheet.cssRules;
Array.each(rules, function(rule, i){
if (!rule.style) return;
var selectorText = (rule.selectorText) ? rule.selectorText.replace(/^\w+/,
function(m){
return m.toLowerCase();
}) : null;
if (!selectorText || !selectorText.test('^' + selector + '$')) return;
Element.Styles.each(function(value, style){
if (!rule.style[style] || Element.ShortStyles[style]) return;
value = String(rule.style[style]);
to[style] = (value.test(/^rgb/)) ? value.rgbToHex() : value;
});
});
});
return Fx.CSS.Cache[selector] = to;
}

        ...
});


2010/6/28 Chilian C. <[email protected]>

> http://labs.nailik.org/morph/same.html
> http://labs.nailik.org/morph/cross.html
>
> On Jun 28, 3:40 pm, "Chilian C." <[email protected]> wrote:
> > a bug or what?

Reply via email to