libcss2less icon indicating copy to clipboard operation
libcss2less copied to clipboard

Repeats same property when found duplicate selector

Open vin-ai opened this issue 11 years ago • 1 comments

I tried:

#container-fluid,
#row-fluid,
#row-fluid > .span2,
#sidebar-nav,
#wrapper {
    height: 100%;
    min-height: 100%;
}

#container-fluid,
#row-fluid,
#row-fluid > .span2,
#sidebar-nav,
#wrapper {
    height: 100%;
    min-height: 100%;
}

#container-fluid,
#row-fluid,
#row-fluid > .span2,
#sidebar-nav,
#wrapper {
    height: 100%;
    min-height: 100%;
}

and it produces: here height and min-height is repeating thrice, because above same selector repeating thrice

#container-fluid,#row-fluid,#row-fluid &>.span2,#sidebar-nav,#wrapper {
    height: 100%;
    min-height: 100%;
    height: 100%;
    min-height: 100%;
    height: 100%;
    min-height: 100%;
}

vin-ai avatar Mar 19 '13 13:03 vin-ai

Or, more simply:

#hello {
    color: blue;
}
#hello {
    color: blue;
}

produces:

#hello {
    color: blue;
    color: blue;
}

I don't think this is a bug. The root cause of the problem is that your original CSS is bad.

rjmunro avatar Apr 30 '14 17:04 rjmunro