I encountered a similar issue where new elements added to the container would overlap, creating random paddings between them. I tested it in Firefox and did not experience any problems.
After trying different solutions, I discovered that the list would render properly without overlapping if the container width was changed (although I can't say for certain if this triggers an internal re-render in Chromium).
To address this issue while waiting for the Chromium/Chrome team to fix the bug, I implemented a temporary solution using JavaScript. This involved adjusting the element's width by one pixel and then adding it back in the next render cycle.
Please note: This is just a quick fix to prevent user frustration in production until a permanent solution is found.
// Call this function when new elements are added to the flex container
function fixChrome89Bug() {
if (!window.navigator || !window.navigator.userAgent) return;
if (window.navigator.userAgent.indexOf('Chrome/89') !== -1) {
const element = document.querySelector('your element reference');
element.style.width = `${element.offsetWidth - 1}px`;
window.requestAnimationFrame(function () {
element.style.width = '';
});
}
}