I have a problem when handling CSS transitions:
elem.style.height = new_height;
await waitUntilCSSUpdated(elem);
await waitUntilCurrentTransitionEnd(elem);
<...some codes>
Note: This code is loaded with the async attribute.
The second function waitUntilCurrentTransitionEnd works correctly, but I am having trouble with waitUntilCSSUpdated to get the exact CSS update time. It seems to differ for each browser. Is there any way to achieve this?
 
    