- Webpack Version: n/a
- Operating System (or Browser): Ubuntu Linux 18.10
- Node Version: 10.16.2
- postcss-values-parser Version: 3.0.5
How Do We Reproduce?
require('postcss-values-parser').parse('local(foo),local(bar)')Expected Behavior
Should come out as a func node followed by a punctuation node (the comma) and another func node.
Actual Behavior
Root{raws: {semicolon: false,after: ''},type: 'root',nodes:
[Func{raws: [Object],name: 'local',type: 'func',isColor: false,nodes: [Array],parent: [Circular],source: [Object],params: '(foo)'},Func{raws: [Object],name: ',local',// <-- that comma should have been its own tokentype: 'func',isColor: false,nodes: [Array],parent: [Circular],source: [Object],params: '(bar)'}],source: [...]}I haven't done a thorough reading of the CSS syntax module spec, but I'm fairly sure that the spacing around the comma is optional. I've also seen cssnano compress font-family values to omit it between local(...) tokens like these.
How Do We Reproduce?
Expected Behavior
Should come out as a
funcnode followed by apunctuationnode (the comma) and anotherfuncnode.Actual Behavior
I haven't done a thorough reading of the CSS syntax module spec, but I'm fairly sure that the spacing around the comma is optional. I've also seen
cssnanocompressfont-familyvalues to omit it betweenlocal(...)tokens like these.