Re: Problems with CSS Styles: font-weight change but stoke and fill color won't!
"Siegfried Heintze" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
Hmm...
This causes an error and my function won't work:
// document.styleSheets[0].cssRules[26].style.setProperty("fill", "grey",
"")
// document.styleSheets[0].cssRules[27].style.setProperty("fill",
"black", "")
This worked once (maybe I have to restart my browser? or reboot?)
document.styleSheets[0].cssRules[26].setAttribute("style",
"fill:grey;");
document.styleSheets[0].cssRules[27].setAttribute("style",
"fill:black;");
Now why the above does not cause an error but this does is really
mysterious:
document.styleSheets[0].cssRules[26].setAttribute("style",
"fill:black;");
document.styleSheets[0].cssRules[27].setAttribute("style",
"fill:grey;");
I'm out a time. Maybe I can get you more clues later.
Siegfried