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 font descriptors wrongly validated as font properties #1307

Closed
MurakamiShinyu opened this issue Apr 11, 2024 · 1 comment · Fixed by #1308
Closed

CSS font descriptors wrongly validated as font properties #1307

MurakamiShinyu opened this issue Apr 11, 2024 · 1 comment · Fixed by #1308
Assignees
Labels

Comments

@MurakamiShinyu
Copy link
Member

CSS font descriptors in @font-face rules are wrongly validated as font properties and cause warnings "E_INVALID_PROPERTY_VALUE".

For example, font-weight: 300 400 in @font-face rule is a valid font descriptor, but it is wrongly validated as font-weight property which cannot have two values and causes a warning:

E_INVALID_PROPERTY_VALUE font-weight: 300 400

Test case: https://github.com/web-platform-tests/wpt/blob/master/css/css-fonts/variations/font-descriptor-range-reversed.html

Test with Vivliostyle Viewer (v2.28.1): https://vivliostyle.github.io/viewer/v2.28.1/#src=https://github.com/web-platform-tests/wpt/blob/master/css/css-fonts/variations/font-descriptor-range-reversed.html

Screenshot:
Screenshot 2024-04-11 22 20 34

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

Successfully merging a pull request may close this issue.

1 participant