w3c / w3c/afrlreq

Webkit doesn't automatically right-align Adlam – FIXED !

Open
#13 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

doc:adlm gap i:bidi_text l:ff p:ok s:adlm x:adlm
Dominant language
HTML
Stars
11
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Adlam text displayed in a block element with dir set to auto should be automatically right-aligned, unless the base direction is set to LTR, like this:

Screenshot 2021-01-22 at 15 33 38

The GAP

In WebKit the text appears as follows:

Screenshot 2021-01-22 at 15 36 02

This is a serious issue, and indicates that first-strong heuristics are not being applied. Note that this was not an issue for N'Ko, Arabic, Hebrew, Thaana, or Syriac text.

Priority

Priority initially set to basic because this was a serious issue for Adlam users, but now set to OK.

Tests & results

Interactive test, Text in languages that use RTL scripts will be automatically aligned with the right side of their container when dir is set to auto

  • Gecko:Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:96.0) Gecko/20100101 Firefox/96.0
  • Blink:Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
  • Webkit: ✅ Adlam used to be broken, but is now fixed (see the bug report). Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Action taken

Webkit

Outcomes

This was fixed in WebKit, so it now works as expected for all 3 major browser engines.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked interactive test, “Text in languages that use RTL scripts will be automatically aligned…”, and compare its expected behavior with the linked WebKit bug 220885. The issue reports that WebKit already passes the test, so no repository change remains to make.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
internationalization, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
10/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.