[csswg-drafts] [css-fonts-4] font-weight and calc.

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

== [css-fonts-4] font-weight and calc. ==
This is just a request for clarification.

https://drafts.csswg.org/css-fonts-4/#font-weight-numeric-values says:

> Only values greater than or equal to 1, and less than or equal to 1000, are valid, and all other values are treated as parse errors.

This doesn't say how to handle calc(), but per my reading of previous discussions the expected behavior is that `font-weight: calc(-1)` is _not_ a parse error, and it gets clamped at computed value time.

However no UA does this AFAICT. Am I right that that's the expected behavior? Or should we give up on not making calc() for numeric values out of range be a parse error?

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

Received on Tuesday, 17 April 2018 10:27:12 UTC