W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2017

[csswg-drafts] [css-fonts-3] Is the exclusion of calc() from @font-feature-values intentional?

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 Mar 2017 01:11:16 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-217111268-1490577075-sysbot+gh@w3.org>
MatsPalmgren has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts-3] Is the exclusion of calc() from @font-feature-values intentional? ==
I was writing some code to improve support for `calc()` in gecko
and I happened to accidentally support it in `@font-feature-values`,
specifically the NUMBER in the grammar here:
The prose says that NUMBER "are limited to integer values 0 or greater".
With that grammar + prose, `calc()` isn't allowed.  If the spec instead used
`<integer>` in the grammar then `calc()` would be allowed per:

This makes `feature_value_definition` in `@font-feature-values` 
different from `<feature-tag-value>` in `font-feature-settings`:
which use `<integer>` and thus allows `calc()` expressions.

Is this difference intentional?
(If so, it might be worth adding a note, or include a `calc()` in the example
that lists syntax errors, to make that clear.)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1127 using your GitHub account
Received on Monday, 27 March 2017 01:11:22 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:09 UTC