Don not apply spacing between the joined typographic letter units of cursive scripts when letter-spacing is not normal

NEW
Unassigned

Status

()

defect
P3
normal
2 years ago
3 months ago

People

(Reporter: jeremychen, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

()

Attachments

(1 attachment)

Posted file test
STR:
Put some texts which include the sequence of joined typographic letter units of cursive scripts such as Arabic, ex. مممممع in a web page. Apply letter-spacing property.

Expect:
The sequence مممممع should has no gaps in it

Actual:
The sequence مممممع has gaps in it

I've uploaded a test file (see attached) which refers to CSSWG's text-justify test [1].


According to the CSS Text 3 letter-spacing specification [2],

```
if the UA cannot expand text from a cursive script without breaking its cursive connections, it must not apply spacing between any pair of that script’s typographic letter units at all.
```

A similar description can be found in text-justify [3] as well,

```
Justification must not introduce gaps between the joined typographic letter units of cursive scripts such as Arabic
```

It seems both of them specify that we should not introduce any gaps in these cursive scripts at all.



[1] https://www.w3.org/International/tests/repo/run?base=css-text-3&batch=text-align&test=text-justify/text-justify-004.html
[2] https://drafts.csswg.org/css-text-3/#cursive-tracking
[3] https://drafts.csswg.org/css-text-3/#justify-cursive
Priority: -- → P3

Comment 1

3 months ago

Is there a definitive list of Unicode scripts that should be considered "cursive" for this purpose?

Comment 5

3 months ago

The ones start with https://gist.github.com/ebraminio/727689919dbc485e023fe054bdd7c19b/ddc114e409b16ff42622273cdf822bef1287dc18 0b11 0b01 the left most bit is IS_CURSIVE_WRITING and the next is IS_CONNECTED_WRITING and apparently both used for isScriptOkForLetterspacing blacklist.

You need to log in before you can comment on or make changes to this bug.