CSSCompare icon indicating copy to clipboard operation
CSSCompare copied to clipboard

Multi-line selectors not working

Open dougahall opened this issue 7 years ago • 1 comments

Rule blocks with multiple selectors on more than one line do not produce the correct results. For example, with v1 file of

h1,
h2 {
    background: blue;
}

And a a v2 file of

h1,
h2 {
    background: white;
}

The result is

h2 {
    background: blue
}

Notice that only the last selector (h2) is in the output.

dougahall avatar Jul 13 '17 14:07 dougahall

Hi @bertjohnson, I have a fix for this if you are open to pull requests.

dougahall avatar Jul 13 '17 14:07 dougahall