5 ms·
I'm not an expert in this area, but doesn't setting these properties only take effect in the next layout/paint cycle? I think you need to call getComputedStyle
by ash_gti 9y ago
I'm not an expert in this area, but doesn't setting these properties only take effect in the next layout/paint cycle?
I think you need to call getComputedStyle (https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle https://developer.mozilla.org/en-US/docs/Web/API/Window/getC...) to resolve the new style update outside of the layout/paint cycle.
But I'm not really sure to be honest