I have the same problem.
I'm using a stylesheet like:
body.page-main #realms a:link,
body.page-results #realms a:link,
.realmsLink_normal {
color: #666;
background: #f8f8f8;
}
body.page-main #realms a:hover,
body.page-results #realms a:hover,
.realmsLink_hover {
color: black;
background: #ffe280;
}
but the current implementation of Fx.CSS.search method cannot
grab .realmsLink_hover and .realmsLink_normal from these selectors.
I think it should split the selector text by comma and check them
independently.
On 9월1일, 오후3시46분, muniom <[EMAIL PROTECTED]> wrote:
> If anyone is interested I solved this by editing the mootools Fx.CSS
> class.
>
> 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;
> 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;
> }
>
> Note the commented out line which changes the prefix of searches.
>
> With a bit of css massaging I was able to get my script to work
> again :)