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

drott has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts-4] Font shorthand can not reliably parse oblique <angle>, needs <font-style-css3> exception ==
[The font shorthand property](https://drafts.csswg.org/css-fonts-4/#font-prop) 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]`


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1630 using your GitHub account

Received on Thursday, 20 July 2017 12:13:50 UTC