This isn't pure css as it's using JS to set the property, but it should be a good indicator.
I think you need to call 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
I think you need to call 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