css-property-parser icon indicating copy to clipboard operation
css-property-parser copied to clipboard

expandShorthandProperty outputs incorrect results for border-color hsl followed by rgb

Open nicksheen opened this issue 7 years ago • 0 comments

var cpp = require("css-property-parser") cpp.expandShorthandProperty('border-color', 'hsl(214, 41%, 78%) rgb(218, 112, 214) white NavajoWhite')

outputs: Object border-bottom-color: "NavajoWhite" border-left-color: "white" border-right-color: "white" border-top-color: "hsl(214, 41%, 78%)"

whereas it should output: Object border-bottom-color: "NavajoWhite" border-left-color: "white" border-right-color: "rgb(218, 112, 214)" border-top-color: "hsl(214, 41%, 78%)"

nicksheen avatar Jun 01 '18 02:06 nicksheen