Search arXiv⌕ Search

arXiv subjects

Tasmia Zerin

Publications and source records attributed to Tasmia Zerin.

3 recordsLinked to original sources

NavA11y: A Dynamic Analysis Approach for WCAG 2.4 Focus-Behavior Evaluation

Despite websites becoming integral to daily life, most of them are inaccessible to people with disabilities. While automated techniques exist to detect accessibility violations, prior work primarily relies on static analysis of HTML, CSS, and JavaScript. This analysis fails to determine violations which require live browser interaction. Several violations under the WCAG 2.4 focus-behavior Success Criteria (SCs), such as incorrect tab order, missing or insufficient focus indicators, and element obscuration, arise only during user interaction. To address this gap, we present a dynamic analysis approach targeting all five focus-behavior SCs defined in WCAG 2.4 navigable guidelines. The approach analyzes a webpage at two levels, page level and element level. At the page level, it drives a real browser, simulates keyboard navigation, and presses Tab to record and evaluate the focus order of elements across a webpage. At the element level, style attributes and obscuration ratio are collected for each element. Finally, these are used to check the visibility of a focus indicator and any obscuration by overlapping content. This approach is implemented as a tool called NavA11y. To evaluate this, we constructed a 22-page labeled dataset by extending six focus-related pages from the GDS Accessibility Tool Audit with 16 newly constructed test cases covering all five criteria. NavA11y detected all violations on this dataset without any false positives. To evaluate on real-world cases, we collected 26 production websites. Our approach detected 2,947 violations across those websites, with manual verification on a stratified sample confirming 90% as true positives.

cs.SE↗

A Heuristic Approach to Localize CSS Properties for Responsive Layout Failures

Responsive Layout Failures (RLFs) typically arise from CSS properties that hinder proper layout behavior in different screen sizes. To find an accurate and effective solution for repairing RLFs, localization of those problematic properties is necessary. However, existing approaches only detect RLFs and apply broad CSS patches for them. The patches alter the entire layout without localizing the root cause of failure. To address this gap, we propose a heuristic approach to identify the specific CSS properties that developers would typically localize manually. The approach first detects the RLFs existing in a webpage and their affected elements. Next, it localizes the nearby HTML elements using RLF direction and relative alignment of the elements present in the RLF region. The involved CSS properties of those elements are then identified using a ranked search set of CSS properties, created by analyzing Quora and Stack Overflow queries. Finally, elements and their corresponding property pairs are ranked based on their impact on RLFs. We have implemented this approach into a tool called {\normalfont \textsc{LocaliCSS}} and evaluated it on a set of webpages using Top N Rank, MRR and P@K metrics. The tool achieved localization accuracy ranging from 45.2% (Top-1) to 92.86% (Top-7), with an MRR of 76% and a P@3 of 77.13%. Additionally, experienced front-end engineers manually localized the RLFs as part of our evaluation. Their preferred CSS properties matched the suggestions from our approach in 42.86% of cases for Top-1 rankings and up to 90.48% for Top-7 rankings.

cs.SE↗

Repairing Responsive Layout Failures Using Retrieval Augmented Generation

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.

cs.SE↗