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

Initial values missing for intermediate expansions

Open chriseppstein opened this issue 8 years ago • 0 comments

> propParser.expandShorthandProperty("border", "0", false, true);
=> {
border-bottom-color:"currentcolor";
border-bottom-style:"none";
border-bottom-width:"medium";
border-left-color:"currentcolor";
border-left-style:"none";
border-left-width:"medium";
border-right-color:"currentcolor";
border-right-style:"none";
border-right-width:"medium";
border-top-color:"currentcolor";
border-top-style:"none";
border-top-width:"medium";
border-width:"0";
}

This is missing: border-style: none and border-color: currentcolor

I expect the keys returned recursively to always be symmetric with the array of keys returned by: propParser.getShorthandComputedProperties("border", true)

chriseppstein avatar Oct 14 '17 11:10 chriseppstein