You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I know this script is pretty old but I needed something like this in a project of mine and I made some fixes to it to work with the newer browser versions.
Just 2 very quick fixed, the first one is for selecting pseudo classes in Chrome, the second one is for the get function to receive the correct data in FF.
This is far from completely working now, for example margin values are incorrect in FF, probably padding as well but I don't need those for now ;-)
In case anyone uses this still...
The text was updated successfully, but these errors were encountered:
Thanks for the feedback, JSS has been updated to handle browser inconsistencies with regards to pseudo element syntax in version 0.6. Any calls to JSS should be made using the correct double colon syntax for pseudo elements.
Hi, I know this script is pretty old but I needed something like this in a project of mine and I made some fixes to it to work with the newer browser versions.
if (!selector || ruleText === selector || ruleText === jss._swapAdjSelAttr(selector)) {
if (!selector || ruleText === selector || ruleText === jss._swapAdjSelAttr(selector) || ruleText === selector.replace(':','::')) {
result[propName] = rules[i].style[propName];
result[propName] = rules[i].style[propName] || rules[i].style[jss._toCamelCase(propName)];
Just 2 very quick fixed, the first one is for selecting pseudo classes in Chrome, the second one is for the get function to receive the correct data in FF.
This is far from completely working now, for example margin values are incorrect in FF, probably padding as well but I don't need those for now ;-)
In case anyone uses this still...
The text was updated successfully, but these errors were encountered: