do i know any devs at mozilla/chrome/IE who can talk to me about perf characteristics around CSS's `insertRule(..)` and `deleteRule(..)`?
3
1
@getify In Gecko they'll force us to rerun all cascading + selector matching (slow!), but should coalesce well. (Better if scoped style.)
2
@davidbaron my goal is to update/replace rules, not create new ones. sounds like there's no way to "tell" gecko that?
1
Replying to @getifyX
@getify Do they have the same selectors? If so, can you manipulate the declaration instead? If not, we have to do all that work.

Dec 13, 2014 · 6:09 AM UTC

2
Replying to @davidbaron
@davidbaron yes, same selectors. but trying to avoid the manual "manipulation", which is basically as brittle as setting style.* props
@getify Actually, though, manipulating the declaration doesn't get you anything faster. (Though, potentially, it could in the future.)
2
@davidbaron using a technique i call "css templating" to regenerate the style rules in browser w/ new vals, then to update w/ insert/delete