-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jss cannot read external css rules #21
Comments
I don't think JSS purports to be able to do this. It would be a good feature though! |
Jss creates its own stylesheet and uses it for everything. If you want to search all stylesheets, you can do the following:
Results will contain the list of styles for that selector from all stylesheets. Note that if there are multiple matching rules, jss combines them are combined together. I actually have no idea if jss returns all matching selectors, or only the specific selector you searched for. I think this library could definitely use some more functionality around interacting with stylesheets like this. |
i came to a situation when i need to check css rule of some jquery ui class loaded via external hoster stylesheet... in this case sheet.cssRules and sheet.rules arrays are empty.
Chrome.
The text was updated successfully, but these errors were encountered: