We should scope transition handling outside of this while loop somehow, the UpdateContainerQueryStyles inside the loop is what can trigger multiple restyled in the same flush
Bug 1893320 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
We should scope transition handling outside of this while loop somehow, the UpdateContainerQueryStyles inside the loop is what can trigger multiple restyles in the same flush