计算机科学 > 软件工程
[提交于 2025年11月1日]
标题:Repairing Responsive Layout Failures Using Retrieval Augmented Generation
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Responsive websites frequently experience distorted layouts at specific screen sizes, called Responsive Layout Failures (RLFs). Manually repairing these RLFs involves tedious trial-and-error adjustments of HTML elements and CSS properties. In this study, an automated repair approach, leveraging LLM combined with domain-specific knowledge is proposed. The approach is named ReDeFix, a Retrieval-Augmented Generation (RAG)-based solution that utilizes Stack Overflow (SO) discussions to guide LLM on CSS repairs. By augmenting relevant SO knowledge with RLF-specific contexts, ReDeFix creates a prompt that is sent to the LLM to generate CSS patches. Evaluation demonstrates that our approach achieves an 88\% accuracy in repairing RLFs. Furthermore, a study from software engineers reveals that generated repairs produce visually correct layouts while maintaining aesthetics.
提交历史
来自:Tasmia Zerin[v1] 2025年11月1日 星期六 19:41:20 UTC