javascript - Progress bar element breaking Chrome rendering (unless Dev Tools open) -
updated add fiddle: http://jsfiddle.net/wvuqy/6/
i have page_action in chrome parses response xhr make menu of video clips download. there <span class="status"> each clip defaults blank, shows "pending" when queued, , changes either "interrupted" (in red) or "complete" depending on how download stops. these behaviors, , updating <span class="status"> percentage of download complete progressed work fine.
i tried swap out displaying percentage string <progress> bar instead, introduce element document, start getting rendering problems only when i'm not using chrome dev tools.
here's 2min video of odd behavior in action: http://www.youtube.com/watch?v=m50f5ly93mm
the fiddle link @ top output console periodically (every 5s) changes display property <span> , <progress> elements, never appear. if comment out line subdiv.appendchild('progressbar') , change nothing else, behavior of <span class="status"> magically fixed.
everything works expected when no <progress> elements in document; works expected if setinterval var created within button's onclick function; works expected if "inspect element" result pane in dev tools.
in cases, works expected in firefox, i'm trying build chrome extension specifically.
you running manifestation of https://bugs.webkit.org/show_bug.cgi?id=84242 - bisection gave me http://trac.webkit.org/changeset/83065 dealt major rewrite of <progress> element implementation. link bug question - perhaps former more attention.
Comments
Post a Comment