Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-fonts-4] How are duplicate "feature value blocks" treated in @font-feature-values? #3947

Closed
tabatkins opened this issue May 20, 2019 · 1 comment
Labels
css-fonts-4 Current Work

Comments

@tabatkins
Copy link
Member

If you have a single @font-feature-values rule with a duplicate "feature value block", are those blocks cascaded together or last-wins?

@font-feature-values foo {
  @swash { pretty: 1; }
  @swash { cool: 2; }
}

Does the above let me do font-feature-alternates: swash(pretty); and font-feature-alternates: swash(cool);, or just cool?

Same question between rules, too:

@font-feature-values foo {
  @swash { pretty: 1; }
}
@font-feature-values foo {
  @swash { cool: 2; }
}

In both of these cases, I presume that they cascade together; in other words, the only duplication we look out for is in the (family, feature, name) whole tuples, at which point last-wins.

@tabatkins tabatkins added the css-fonts-4 Current Work label May 20, 2019
@tabatkins
Copy link
Member Author

I read down further and the second case (multiple rules defining stuff for the same feature type) is already addressed with a "yes". I'll go ahead and assume the first case is the same and close this. (I'm editting the text to say that already.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-fonts-4 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant