javascript - Chrome console/devtools doesn't update css properties: Dynamic stylesheet manipulation -


i have been trying manipulate css properties dynamically via javascript, using stylesheet methods (deleterule/removerule/insertrule). works nicely when check chrome console, doesn't refresh new css changes.

here have example: http://jsfiddle.net/pz69e/4/
full screen example: http://jsfiddle.net/pz69e/4/show

it uses simple external stylesheet file: body { background-color: black; }

the script changes yellow, removing rule (using deleterule) , adding new 1 (insertrule).

if check chrome console on body, have same first property { background-color: black; } without updating new changes. :(

do guys know why behavior?

thanks!

edited

for reason example not working in last 12 hours, should work again: http://jsfiddle.net/pz69e/4/

looking forward hearing you!


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -