xfix.ai ux
CHK-045 · MediumApplies toStores

RTL rendering correct when language is Arabic/Hebrew

A checkout in a right-to-left language is laid out right to left. It applies when the first checkout step declares right to left (dir="rtl" on the page) or an Arabic, Hebrew, Persian or Urdu language attribute; an AI model then reads a full-page screenshot of that step. A missing dir="rtl" is not a fail on its own.

Step: CheckoutSeverity: MediumWeight: 1 pts of the 100-point scoreJudged on 2 published audits so farSource: W3C Internationalization · Structural markup and right-to-left text in HTML

What it looks for

A checkout in a right-to-left language is laid out right to left. It applies when the first checkout step declares right to left (dir="rtl" on the page) or an Arabic, Hebrew, Persian or Urdu language attribute; an AI model then reads a full-page screenshot of that step. A missing dir="rtl" is not a fail on its own.

  • Pass: The layout is cleanly mirrored: text reads right to left and the controls line up.
  • Partial: Mostly mirrored, but a few elements (icons, badges, one section) still read left to right.
  • Fail: The layout breaks right to left: text overlaps, controls are misaligned, or the page was clearly not designed for it.

How it is checked

  1. Fresh browser. Signed out, cookies cleared, desktop and mobile viewports, the store's live theme.
  2. Open a product. A real, in-stock product page, found the way a shopper finds one.
  3. Add to cart. Default variant, quantity one, then the cart page itself.
  4. Walk the checkout. From the cart to the payment step. Nothing is ever bought.
  5. Judge this rule. Against the standard above, on what a shopper can see.
  6. Record the verdict. Pass, partial or fail, saved with the evidence it was judged on: a screenshot where the rule is visual.

Why it matters

RTL users read from the right. A left-to-right layout in an RTL language feels broken and untrustworthy, especially at the payment step.

How to fix it

  1. Set <html dir="rtl"> when serving an RTL language and use CSS logical properties (margin-inline-start / -end) instead of left / right.
  2. Test the full checkout flow in Arabic or Hebrew: buttons, icons, form labels should all mirror.
  3. Numbers and card-number inputs stay LTR even in RTL layouts; use unicode-bidi: plaintext to handle them.

What the xfix ux team says about this rule

Arabic checkout rendered left to right is not translated, it is transliterated. The layout has to mirror as well.

Drafted by the xfix ux team and approved on 22 Sept 2026.

Sources

How to cite it

"RTL rendering correct when language is Arabic/Hebrew" (CHK-045), a rule in the xfix ux rulebook. xfix ux, xfix.ai/ux/rules/stores/right-to-left-checkout-layout/

Questions

What does CHK-045 check?

A checkout in a right-to-left language is laid out right to left. It applies when the first checkout step declares right to left (dir="rtl" on the page) or an Arabic, Hebrew, Persian or Urdu language attribute; an AI model then reads a full-page screenshot of that step. A missing dir="rtl" is not a fail on its own.

What counts as a pass on CHK-045?

The layout is cleanly mirrored: text reads right to left and the controls line up.

What counts as a fail on CHK-045?

The layout breaks right to left: text overlaps, controls are misaligned, or the page was clearly not designed for it.

Why does CHK-045 matter?

RTL users read from the right. A left-to-right layout in an RTL language feels broken and untrustworthy, especially at the payment step.

How do I fix a fail on CHK-045?

Set <html dir="rtl"> when serving an RTL language and use CSS logical properties (margin-inline-start / -end) instead of left / right. Test the full checkout flow in Arabic or Hebrew: buttons, icons, form labels should all mirror. Numbers and card-number inputs stay LTR even in RTL layouts; use unicode-bidi: plaintext to handle them.