New issue
Advanced search Search tips

Issue 897197 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac , Fuchsia
Pri: 3
Type: Bug



Sign in to add a comment

CSS Styling changes OpenType substitution

Reported by signalw...@googlemail.com, Oct 19

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Steps to reproduce the problem:
If CSS `p::first-letter` applies to a string where the first letter should get replaced with the ligature feature of the font the replacement is not happening. Detailed description, comparisons an and code: https://signalwerk.github.io/css-opentype-substitution/ 

What is the expected behavior?

What went wrong?
The first letter gets not replaced.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 69.0.3497.100  Channel: stable
OS Version: OS X 10.14.0
Flash Version:
 
Components: Blink>CSS
Status: Untriaged (was: Unconfirmed)
Mac triage: can't even understand the bug description, let alone tell if it repros :) over to blink CSS team.
Sorry if my description is not all that simple. I try it in other words:

We have:

<p>AB</p>


The font has a substitution (inside the liga feature of the font):

`sub A' B by emdash;` 

Notation: [OpenType Feature File Specification](https://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html)

The renderer therefore shows:

<p>&mdash;B</p>


Now we apply with CSS a formatting to the first letter. 

Instead of

<p>&mdash;B</p>

the renderer shows:

<p>AB</p>



My URL shows a very reduced example and is taken from a real world example but made with a reduced custom font that shows only this problem.
I reworked the explanations and the example-font: https://signalwerk.github.io/css-opentype-substitution/
Cc: kojii@chromium.org e...@chromium.org
Components: -Blink>CSS Blink>Layout
Labels: OS-Android OS-Chrome OS-Fuchsia OS-Linux OS-Windows
Status: Available (was: Untriaged)
Thanks for the detailed report and example.
Labels: -Pri-2 Pri-3

Sign in to add a comment