R054: Italic/oblique applied to Arabic text
Arabic has no italic tradition, so the browser fakes one by mechanically slanting the letters, and text meant to look emphasized reads as distorted instead; weight or color works better.
The check
- Id
- R054
- Category
- Typography
- Default severity
When it fires
Visible text with at least 5 Arabic letters is set
font-style: italicoroblique. With no Arabic italic to use, the browser slants the letters mechanically.Fix: Use font-weight or color for emphasis in Arabic; reset font-style to normal.
What it leaves alone
Text with fewer than 5 Arabic letters, like a Latin phrase inside Arabic copy, which can keep its italic. Up to six per page.
Broken, then fixed
em {
font-style: italic;
}:lang(ar) em {
font-style: normal;
font-weight: 600;
}Check it by hand
Select the text and run getComputedStyle($0).fontStyle in the DevTools console. italic or oblique on Arabic is the finding; <em> and <i> are italic by default.
What the report shows you
Each R054 finding carries the fields below that apply to it, so you can see why it fired without rerunning the scan.
- fontStyle
- The computed
font-style. - sample
- The text, cut to 80 characters.
More typography checks
- Arabic text falling back past the declared font family (measured, declared, or a webfont that failed to load)
- letter-spacing applied to Arabic text (breaks the connected script)
- line-height below 1.5 on Arabic body text
- Arabic body text below 14px
- Latin display styling (uppercase + tracking) applied to Arabic
Does your page trip R054?
Paste a URL. Ritla renders the page on desktop, tablet and mobile, runs every check, and shows the top issues with screenshot evidence.
Scan a page freeBrowse the checks