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
Post a Comment