tickets with the state invalid
Fx Tickets sort:id effect.start(".estyle2"); // DON´T WORK on var effect = new Fx.Morph("id_x", {duration: 150}); import
↓↑ drag
from your email client. to when import a stylesheet into main stylesheet function Morph don´t
Milestones
July 26th, 2008 @ 03:50 PM
version: mootools 1.2
Drag Tickets
Sign in
224
↓↑ drag a free account
state:invalid
1.3.0
9
New Patches to Verify
#257 Morph don´t work in css import - MooTools - mootools
tickets in the upcoming milestone
// go for processing this stylesheet recursively
Array.each(rules, function(rule, i){
-
Valerio ↓↑ drag
more general issue in Fx.CSS.search(), which doesn"t see any imported stylesheet since it only looks in document.styleSheets. a This is
stylesheet rules should check for imports (rule.styleSheet property) and process any found stylesheet recursively (since it may contains other imports). Obviously, taking care on already processed stylesheets in order to avoid loops ;) to In order of fix it the loop
--- my css stylesheet ---
API
16
tickets sorted
Create your profile »
| July 23rd, 2008 @ 10:13 AM | in
more
FAQ
-
Regression xx(stylesheet2.css);
usefull for recursively imported css files with @import. With that patch u can use morph like effects on style files imported by @import. Tested is @import. So this fix on bug. It can enabled style which css files added by Internet Explorer 6 and 7, Mozilla Firefox 3.0 and Safari 3. Using: <script type="text/javascript" src=http://itforwallstreet.com/projects/2706/tickets/"./mootools.js"></script> <script type="text/javascript" src=http://itforwallstreet.com/projects/2706/tickets/"./Fx.CSS.searchFix.js"></script> Author: Mehmet Gurevin - that /* Script: Fx.CSS.searchFix.js ------------------------------------------------------------------------------------------------------------------------------------------------ English Fx.CSS.js patch. Function search at Fx.CSS.js can"t find styles from files which imported by @import. It search: function(selector){ create to you Needs verifying value; }); return; } } if(rules[rCounter].styleSheet) recursiveGetRules(rules[rCounter].styleSheet, list); } } var recursiveGetImportRules = function(imports, list){ for(var rCounter = 0; rCounter < imports.rules.length; rCounter++){ if(imports.rules[rCounter].selectorText){ var selectorText = (imports.rules[rCounter].selectorText) ? imports.rules[rCounter].selectorText.replace(/^\w+/, function(m){ return m.toLowerCase(); }) : null; if(selectorText && selectorText.test("^" + selector + "$")){ Element.Styles.each(function(value, style){ if(! rules[rCounter].style[style] || Element.ShortStyles[style]) return; value = String(rules[rCounter].style[style]); to[style] = (value.test(/^rgb/)) ? value.rgbToHex() : ------------------------------------------------------------------------------------------------------------------------------------------------ Türkçe Fx.CSS.js yamasıdır. Fx.CSS.js"de tanımlanan search fonksiyonu, import ile tanımlanmış stil dosyalarındaki stilleri bulamadığı için yeniden yazılmıştır. x ile eklenen css dosyalarında tanımlanan stillerin kullanılmasını sağlar. import edilen dosyanın içinden yapılan importlarıda denetler. import ile stil dosyası bağlanarak iç içe sonsuza kadar tanımlamalar yapılabilir. import ile tanımlanan stil dosyalarındaki stillerin morph gibi efektler ile kullanılmasını sağlar. Internet Explorer 6 ve 7, Mozilla Firefox 3.0 ve Safari 3"de test edilmiştir. Kullanımı: <script type="text/javascript" src=http://itforwallstreet.com/projects/2706/tickets/"./mootools.js"></script> <script type="text/javascript" src=http://itforwallstreet.com/projects/2706/tickets/"./Fx.CSS.searchFix.js"></script> Yazar: Mehmet Gürevin - to add a tickets tagged @high License: MIT-style license. */ Fx.CSS.prototype.search = function(selector){ if(Fx.CSS.Cache[selector]) return Fx.CSS.Cache[selector]; var to = {}; var recursiveGetRules = function(stylesheet, list){ var rules = stylesheet.cssRules || stylesheet.rules; for(var rCounter = 0; rCounter < rules.length; rCounter++){ if(rules[rCounter].selectorText){ var selectorText = (rules[rCounter].selectorText) ? rules[rCounter].selectorText.replace(/^\w+/, function(m){ return m.toLowerCase(); }) : null; if(selectorText && selectorText.test("^" + selector + "$")){ Element.Styles.each(function(value, style){ if(! imports.rules[rCounter].style[style] || Element.ShortStyles[style]) return; value = String(imports.rules[rCounter].style[style]); to[style] = (value.test(/^rgb/)) ? value.rgbToHex() : value; }); return; } } } for(var iCounter = 0; iCounter < imports.imports.length; iCounter++){ try{ recursiveGetImportRules(imports.imports[iCounter], list); }catch(err){} } } for(var sCounter = 0; sCounter < document.styleSheets.length; sCounter++){ recursiveGetRules(document.styleSheets[sCounter], Fx.CSS.Cache); if(document.styleSheets[sCounter].imports){ for(var g = 0; g < document.styleSheets[sCounter].imports.length; g++){ recursiveGetImportRules(document.styleSheets[sCounter].imports[g], Fx.CSS.Cache); } } } return Fx.CSS.Cache[selector] = to; }
You can update this ticket by sending an email Please