Skip to content

[css-fonts-4] Font shorthand can not reliably parse oblique <angle>, needs <font-style-css3> exception #1630

@drott

Description

@drott

The font shorthand property says:

The font property is, except as described below, a shorthand property for setting font-style, font-variant, font-weight, font-stretch, font-size, line-height, font-family at the same place in the stylesheet.

For font-stretch and font-variant exceptions are specified which restrict them to a restricted keyword syntax.

For font-style, no such exception is defined yet.

I believe however, that allowing oblique <angle> into the font shorthand syntax causes parsing tokenization ambiguities and would not work reliably.

I would suggest to change the syntax rule for font-style to use something like

<font-style-css3> = [normal | italic | oblique]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions