richthegeek / phpsass

A compiler for SASS/SCSS written in PHP, brought up to date (approx 3.2) from a fork of PHamlP: http://code.google.com/p/phamlp/
http://phpsass.com/
382 stars 83 forks source link

duplicate properties within same declaration ignored #129

Open Entoarox opened 11 years ago

Entoarox commented 11 years ago

This is a rather unique issue that I only ran into because I was trying to do some stuff using the new flexbox functionality.

The issue happens if the same property is declared twice in the same selector block

#sample selector
{
display:block;
display:box;
}

This causes phpsass to only output the second declaration, while the preview on sass-lang displays the expected behaviour of outputting both. The issue doesnt come up often (as the need to declare a property twice in the same block is rare), but as the 'box' property for display isnt supported universally without vendor prefixes yet, this does cause a rather hard to detect bug (as your input css is completely correct, and the output css is the actual issue.)