The AI prompt that caused my page to continously increase in size A developer encountered an infinite loop that continuously increased a webpage's width after using an AI prompt to make a SvelteKit 5 page responsive. The issue was traced to parent and child elements both having 100% width with padding, causing a ResizeObserver feedback loop. The fix involved setting the parent's width to 100vw and adjusting child widths to auto. This is a submission for DEV's Summer Bug Smash: Smash Stories powered by Sentry. Introduction I usually use AI to do repetitive frontend tasks, this time round the intention was to make a website page responsive. After making the prompt, the result was a page that was in an infinite loop of increasing in width. Disclaimer This happenned after the challenge was announced. The video of the page was recorded and I thought it would be an interesting submission. The video below shows the behaviour of the page. Background The technology used was Sveltekit 5 along with HTML, CSS and Javascript. The section of the page that increased in width, had 4 progress circles to display data and below them were bar and line graphs that were rendered using Svelteplot visualization framework . The code was as follows: