kennethormandy / kennethormandy/normalize-opentype.css
Use tabular numerals for phone numbers?
- Dominant language
- HTML
- Stars
- 786
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
I realised it would be possible to use different numeral sets for phone numbers (and possibly other things) in certain context. For example, in a paragraph you might want a phone number with old-style numerals:

But in most other situations you’d probably prefer tabular numerals:

I’m undecided if this within the scope of this reset. Probably my biggest deterrent is that it would use a less-than-popular selector:
``` css
a[href^="tel:"] {
font-feature-settings: "tnum" 1, "pnum" 1, "kern" 1; /* Etc. */
}
```
This particular feature might be better saved for a “Going beyond Normalize-OpenType.css” set of examples, which could include the features you need to have an opinion on to use, like stylistic sets. I’m pretty open to opinions on it.
Contributor guide
Research direction
No implementation file or test is named. Start by reviewing the reset’s scope and the proposed a[href^="tel:"] selector, then decide whether tabular numerals belong in this project or in a separate examples set. Done means the scope is settled and the CSS or example direction is clearly defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100