Skip to content

[css-fonts-4] §7.2 Feature and variation precedence ignores font-variant descriptor #2478

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

Closed
jfkthame opened this issue Mar 27, 2018 · 2 comments

Comments

@jfkthame
Copy link
Contributor

See https://drafts.csswg.org/css-fonts-4/#feature-variation-precedence

In CSS Fonts 3, features implied by the font-variant descriptor are incorporated at step 2 of the Feature Precedence rules: https://www.w3.org/TR/css-fonts-3/#feature-precedence.

However, in the current draft of Fonts 4, the corresponding section (now Feature and variation precedence) omits any mention of the font-variant descriptor (although it still accounts for the font-variant property).

Presumably, if the font-variant descriptor is intended to work as in Fonts 3, it should be handled in a new step inserted between rules 5 and 6 in the current text.

@fantasai fantasai added the css-fonts-4 Current Work label Mar 29, 2018
@svgeesus
Copy link
Contributor

svgeesus commented Apr 6, 2018

Agreed; analogy with Fonts 3, where the descriptor is step 2, before step 3 about font-feature-settings descriptor descriptor, then in Fonts 4 that should be between steps 5 and 6.

@litherum I'm assuming this omission is an error, rather than being a deliberate removal?

@svgeesus
Copy link
Contributor

I notice this is changed already, Step 10 says

Font features implied by the value of the font-variant property, the related font-variant subproperties and any other CSS property that uses OpenType features (e.g. the font-kerning property) are applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants