kennethormandy / kennethormandy/normalize-opentype.css

Use `inherit` instead of carrying settings down manually

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
HTML
Stars
786
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Need to test this more, but apparently this works in some places:

``` css
body {
font-feature-settings: "kern" 1, "smcp" 1;
}

p {
font-feature-settings: "smcp"; /* This acts like you wrote `"kern" 0;` which is annoying */
font-feature-settings: "smcp" 1, "smcp" 1; /* What I’m doing now */
font-feature-settings: "kern" inherit, "smcp" inherit; /* Verbose, but easier to maintain. */
}
```

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by reviewing the repository’s OpenType CSS declarations and checking the behavior of `font-feature-settings` inheritance in the issue’s examples; done means the supported settings are handled consistently without manual carry-down.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.