Skip to content

[css-fonts-4] Clarify basic syntax of descriptors font-stretch, font-style, font-weight #8085

@cdoublev

Description

@cdoublev

I think that there are some issues with the value definitions of font-stretch, font-style, font-weight.

font-stretch is defined with auto | <'font-stretch'>{1,2} and <'font-stretch'> expands to normal | <percentage [0,∞]> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded.

Does that mean that condensed expanded is valid? EDIT: I guess that there is no reason to parse it as invalid, but Example 29 with font-weight could illustrate this.

font-style is defined with auto | normal | italic | oblique [ <angle>{1,2} ]? and there is a specific rule written in prose for the range allowed for <angle>.

I think it can be defined with auto | normal | italic | oblique [ <angle [−90deg,90deg]>{1,2} ]?.

font-weight is defined with auto | <font-weight-absolute>{1,2} and there is a specific rule written in prose excluding bolder and lighter in <font-weight-absolute>, which expands to [normal | bold | <number [1,1000]>].

The specific rule does not seem required anymore. And does that mean that 200 bold is valid? EDIT: I guess that there is no reason to parse it as invalid, but Example 29 could illustrate this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions