New issue
Advanced search Search tips

Issue 797571 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 6122
Owner: ----
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

::first-letter { text-transform: capitalize } breaks Arabic rendering

Reported by amir.aha...@mail.huji.ac.il, Dec 25 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:59.0) Gecko/20100101 Firefox/59.0

Example URL:
https://jsfiddle.net/amire80/0uzq39ja/

Steps to reproduce the problem:
Apply ::first-letter { text-transform: capitalize } to Arabic text. (See the attached file.)

What is the expected behavior?
The text is supposed to appear as if the text-transform is not applied.

What went wrong?
The first letter appears disconnected from the rest of the text. This is not supposed to happen.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? No
 Firefox Nightly 59.0a1 (2017-12-24)

Chrome version: 63.0.3239.108  Channel: stable
OS Version: OS X 10.13
Flash Version: 

Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1427032

CSS bug: https://github.com/w3c/csswg-drafts/issues/2135
 
first-letter-issue.html
451 bytes View Download
"text-transform: capitalize" should have any effect only in writing systems that have the concept of capitalization: Latin, Cyrillic, Greek, Coptic, Armenian, Adlam, Warang Citi, Cherokee, Osage, Old Hungarian, Glagolitic, and Deseret (and maybe Georgian, but this is controversial).

In other writing systems it should be a no-op.

I'm not sure which part of the CSS breaks this: first-letter or text-transform. My logic tells me that if none of the rules do anything, then the selector shouldn't cause any disconnection between the letters, but I'm not a true CSS expert.
Components: -Blink Blink>Fonts Blink>Layout
Labels: M-65 Needs-Triage-M63 Triaged-ET OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Mac 10.12.6, Win-10 and Ubuntu 14.04 using chrome reported version #63.0.3239.108 and latest canary #65.0.3303.0.
This is a non-regression issue as it is observed from M50 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!

Comment 4 by kojii@chromium.org, Dec 27 2017

Components: -Blink>Layout
Mergedinto: 6122
Status: Duplicate (was: Untriaged)
I think this is because
issue 6122: Text shaping is broken when inlines separate characters

Firefox does not have issue 6122, so there maybe more on top of it when we resolve it. I think we can duplicate to it for now and re-evaluate when it was resolved.

Sign in to add a comment