3 ms·
Just one nitpick: the DOM is not updated by CSS here, only the value of the CSS variable is. (It will indeed cause style recalc and paint though, and result in
by agust 2y ago
Just one nitpick: the DOM is not updated by CSS here, only the value of the CSS variable is. (It will indeed cause style recalc and paint though, and result in poor performance as we can see with the demos.)
- SirHound 2y agoYeah true tho I’m referring to the counter being set via the content style, which doesn’t update the DOM as such but does/can change layout