- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Fri, 01 Sep 2023 13:10:40 +0000
- To: public-css-archive@w3.org
romainmenke has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-syntax] numeric separators == In JavaScript you can use underscores as numeric separators. This is purely syntax sugar. > To improve readability for numeric literals, underscores (`_`, `U+005F`) can be used as separators: ```js 1_000_000_000_000 1_050.95 0b1010_0001_1000_0101 0o2_2_5_6 0xA0_B0_C0 1_000_000_000_000_000_000_000n ``` https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#numeric_separators https://tc39.es/ecma262/multipage/ecmascript-language-lexical-grammar.html#prod-NumericLiteralSeparator CSS number tokens and JS number tokens are mostly the same. This makes it easy to copy/paste values between the two languages. It would be nice if CSS also has support for numeric separators, for the same reasons as why they were added to JavaScript and to make it easier to copy/paste from JavaScript to CSS. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9293 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 1 September 2023 13:10:43 UTC