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

Re: [csswg-drafts] [css-values] calc()'s divisions should support more things

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 19 Apr 2017 02:57:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-295050482-1492570678-sysbot+gh@w3.org>
The OP's bug is invalid; the grammar in <https://drafts.csswg.org/css-values/#calc-syntax> definitely allows numeric expressions in the denominator, and the type-checking in <https://drafts.csswg.org/css-values/#calc-type-checking> is referring to "resolved types". Expressions like `(1 + 1)` have a "resolved type" of `<number>`.

Fran├žois's issue is also invalid - a `calc()` will always resolve to either a `<number>`, `<percentage>`, or `<dimension>`, so nested calc()s are definitely allowed per the grammar.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1241#issuecomment-295050482 using your GitHub account
Received on Wednesday, 19 April 2017 02:58:06 UTC

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