- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Mon, 19 Jun 2017 20:27:34 +0000
- To: public-css-archive@w3.org
I didn't suggest "requiring prefixing these numbers with 0". That would indeed be crazy. I'm saying that, *if* we change Syntax to allow integer declaration names, we need to answer the question of what this means: ``` @font-palette-values foo { 1: blue; 01: red; } ``` Is the second one illegal? (It would be very difficult/weird to make it illegal.) If they're both legal, do they represent the same descriptor, or different ones? (For the same reason, difficult/weird to make them different descriptors.) If they're the same descriptor, it seems possibly confusing to authors that two declarations with different names written down are actually the same; in all existing declarations, the names are compared codepoint-by-codepoint, possibly with ASCII case-folding. I'm not necessarily opposed to this, but we do need to define it one way or another in Syntax. Or we can define the names to be `index-1`/etc, making the names more descriptive and removing the need for any additional changes in Syntax and browser parsers. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1523#issuecomment-309564000 using your GitHub account
Received on Monday, 19 June 2017 20:27:40 UTC