I have some code that is supposed to manipulate CSS from javascript. However, when I moved my code over to file:// access in Android as seems to be the recommended method of running a web app in a WebView, I get an error when the following code tries to run:
return document.styleSheets[0].cssRules[0].style
The value is "cssRules" is always null, which is unexpected.
I found this file in which it appears that this is due to a "bug" in Chromium that Chrome developers are refusing to fix.
I'm wondering if this is really the bug I am running into and if so if there is a workaround for this. How can I manipulate CSS from Javascript in a WebView when running locally? Should I just abandon the whole notion of running locally? I'm afraid there may be other things like this that are going to bite me.