Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
agust
· 2y ago · 0 comments
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.)
Comments
[–]
SirHound
2y ago
Yeah 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