W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2016

[csswg-drafts] [css-values] Parsing "<integer> | <length>" or "<number> | <length>"

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Thu, 15 Sep 2016 10:09:11 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-177137968-1473934149-sysbot+gh@w3.org>
upsuper has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-values] Parsing "<integer> | <length>" or "<number> | 
<length>" ==
>From #460 I noticed that `tab-size`'s syntax is `<integer> | 
<length>`, and I was confused on how `0` should be handled in this 
case, since `0` is valid as both `<integer>` and `<length>`. It seems 
the same issue applies to `<number>`, which `line-height` uses.

I do not find the answer whether for whether `0` should be parsed as 
`<integer>` or `<length>` in this case from css-values spec. Am I 
missing something, or probably the spec should say something about 
this case?

cc @fantasai @tabatkins 

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/489 using your GitHub 
account
Received on Thursday, 15 September 2016 10:09:23 UTC

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