If I know the name of an imported stylesheet, and I know the name of a
specific selector, and I know the name of the property, how can I get
the corresponding value? In the following case:
<style type="text/css">@import url(test.css);</style>
which contains (among other things)
..tester {
color: red;
}
I know the CSS is 'test.css', the selector is the class '.tester', and
the property is 'color'. I need to get the value, in this case 'red',
or, say, null if an error occurred.
Note that the style may not have actually been applied to anything on
the current page.
Andrew Poulos
specific selector, and I know the name of the property, how can I get
the corresponding value? In the following case:
<style type="text/css">@import url(test.css);</style>
which contains (among other things)
..tester {
color: red;
}
I know the CSS is 'test.css', the selector is the class '.tester', and
the property is 'color'. I need to get the value, in this case 'red',
or, say, null if an error occurred.
Note that the style may not have actually been applied to anything on
the current page.
Andrew Poulos
Comment