I am wondering if such a javascript library exists to do the following:
- Look at what CSS stylesheets are included on the page
- Look at the browser to see if it supports selector XYZ on the stylesheet.
- If not, use jquery to apply said style manually.
I am wanting such a library because throughout my site I am using tr:nth-child(odd) td
to apply alternating row colors on tables. I can use jquery to apply these colors, but it would be nice if I could just include a library instead of duplicating my CSS in javascript everywhere.