Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

OpenType features on decimal separators are disabled #364

Open
@denis-sokolov

Description

@denis-sokolov

This is how a number renders:

<span class="constant numeric decimal js">
  42<span class="meta delimiter decimal period js">.</span>2
</span>

Because the decimal is in a separate element, OpenType contextual replacement feature does not work across the entire number. For instance, a typeface might contain two different period glyphs – one for text, and the other for decimal separator.

This is how the DOM needs to look for the feature to work:

<span class="constant numeric decimal js">
  42.2
</span>

I understand that somebody might be relying on this extra element for, perhaps, syntax highlighting the decimal separator. There seems to be a clear conflict of features, and it is up to you to make the call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions