css-raku / CSS-Properties-raku

CSS property-list manipulation library
Artistic License 2.0
1 stars 1 forks source link

Odd consolidation optimization of inherited properties #6

Closed dwarring closed 4 years ago

dwarring commented 4 years ago

CSS::Properties currently does this:

perl6 -I . -e'use CSS::Properties; my CSS::Properties $css .= new: :style("font-size: inherit; font-weight:inherit; font-family:times"); say $css'
# font:inherit inherit times;

Which is odd. Simplest solution is to avoid consolidating inherit and initial for struct properties