# Runtime BiDi Structural Verification Catches Right-to-Left Layout Defects that Accessibility, Actionability, and Logical-Property Linting Miss

DevFeed: [Runtime BiDi Structural Verification Catches Right-to-Left Layout Defects that Accessibility, Actionability, and Logical-Property Linting Miss](<https://devfeed.tech/articles/runtime-bidi-structural-verification-catches-right-to-left-layout-defects-that-accessibility-actionability-and-logical-property-linting-miss-100382.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.32934>)

Author: Karan Yadav

Published: 2026-10-26T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [layout](<https://devfeed.tech/topics/layout.md>), [Headless Browser](<https://devfeed.tech/topics/headless-browser.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Playwright](<https://devfeed.tech/topics/playwright.md>), [Bulma](<https://devfeed.tech/topics/bulma.md>), [axe-core](<https://devfeed.tech/topics/axe-core.md>), [material-components](<https://devfeed.tech/topics/material-components.md>)

Tags: [architectures](<https://devfeed.tech/tags/architectures.md>), [axe](<https://devfeed.tech/tags/axe.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [bidi](<https://devfeed.tech/tags/bidi.md>), [bootstrap](<https://devfeed.tech/tags/bootstrap.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [cs-hc](<https://devfeed.tech/tags/cs-hc.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [css](<https://devfeed.tech/tags/css.md>), [defects](<https://devfeed.tech/tags/defects.md>), [design-systems](<https://devfeed.tech/tags/design-systems.md>), [detection](<https://devfeed.tech/tags/detection.md>), [false-positives](<https://devfeed.tech/tags/false-positives.md>), [headless](<https://devfeed.tech/tags/headless.md>), [layout](<https://devfeed.tech/tags/layout.md>), [linting](<https://devfeed.tech/tags/linting.md>), [logical](<https://devfeed.tech/tags/logical.md>), [material-components](<https://devfeed.tech/tags/material-components.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [rtl](<https://devfeed.tech/tags/rtl.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [verification](<https://devfeed.tech/tags/verification.md>)

## AI overview

The paper evaluates runtime structural checks for catching RTL layout defects caused by unmirrored physical-direction CSS. Across 14 reconstructed bugs, the two complementary modes recover 13, with no false alarms on patched versions: zero-golden checks computed style and geometry, while bidi-conservative differential checks compare layouts. Both report no false positives across 16 LTR-island cases and 43 unmodified components. Zero-golden catches 5 of 6 decoration or styling asymmetries but incorrectly flags a valid logical border-inline-end; differential misses that class but detects the block-level inset and margin class and had no false alarms in the reported evaluation. The abstract contrasts these results with Stylelint, pseudo-localisation, and pixel mirror-and-diff, which performed poorly on the described cases. The work addresses detection; repair is left for future work.

## Source excerpt

arXiv:2610.32934v1 Announce Type: new Abstract: Bidirectional (right-to-left, RTL) layout defects arise when interfaces authored with physical directional CSS (margin-left, border-left, text-align:left) are rendered under dir="rtl" without being mirrored. Accessibility engines (axe-core), actionability engines (Playwright), and even Stylelint's current core logical-property rule fail to localise these defects. We present runtime structural invariants -- a zero-golden mode over computed style and geometry, and a bidi-conservative differential mode -- that catch them in a headless browser. On a held-out benchmark of 14 real RTL bugs reconstructed from dated fix commits in Bootstrap and Material Components Web, the detector recovers 13/14 (2 via zero-golden, 11 via the differential mode), with no false alarm on any patched version; on the actual committed historical bootstrap.rtl.css it catches 1 of 2 attempted. It reports 0 false positives on 16 negative LTR-island cases and, in both modes, on 43 unmodified real components across four design systems and three RTL architectures (rule-of-three 95% upper bound <= 7%), and it surfaced a real directional defect in the current Bulma 1.0.4. By contrast, Stylelint's core rule emits an identical 1744 warnings on Bootstrap's LTR and correct-RTL builds, pseudo-localisation detects none of the mirroring bugs, and a naive pixel mirror-and-diff reaches only F1 0.87 with a test-set-tuned threshold. The two modes are complementary: zero-golden is the sole detector of the decoration/styling-asymmetry class (5/6) but false-flags the correct logical border-inline-end, while the differential detects none of that class yet never false-alarms and is empirically exact on the block-level inset/margin class. We scope this paper to detection; repair is future work.