Commit 0e72aa2c by Aaron Leung

Adding a new (passing) test case to check comment preservation and removal.

parent 4390954e
$blah: bloo blee;
$blip: "a 'red' and \"blue\" value";
/* top level comment -- should be preserved */
div {
/* another comment that should be preserved */
color: red;
background: blue;
$blux: hux; // gone!
span {
font-weight: bold;
a {
text-decoration: none; /* where will this comment go? */
color: green;
/* what about this comment? */ border: 1px $blah red;
}
/* yet another comment that should be preserved */
display: inline-block;
} // gone!
/* the next selector should be indented two spaces */
empty {
not_empty {
blah: blah; // gone!
bloo: bloo;
}
}
p {
padding: 10px 8%;
-webkit-box-sizing: $blux;
}
margin: 10px 5px;
h1 {
color: $blip;
}
}
/* last comment, top level again --
compare the indentation! */
div {
f: g;
empty {
span {
a: b;
}
}
empty_with_comment {
/* hey now */
span {
c: d;
}
}
}
\ No newline at end of file
/* top level comment -- should be preserved */
div {
/* another comment that should be preserved */
color: red;
background: blue;
/* the next selector should be indented two spaces */
margin: 10px 5px; }
div span {
font-weight: bold;
/* yet another comment that should be preserved */
display: inline-block; }
div span a {
text-decoration: none;
/* where will this comment go? */
color: green;
/* what about this comment? */
border: 1px bloo blee red; }
div empty not_empty {
blah: blah;
bloo: bloo; }
div p {
padding: 10px 8%;
-webkit-box-sizing: hux; }
div h1 {
color: "a 'red' and \"blue\" value"; }
/* last comment, top level again --
compare the indentation! */
div {
f: g; }
div empty span {
a: b; }
div empty_with_comment {
/* hey now */ }
div empty_with_comment span {
c: d; }
...@@ -10,10 +10,9 @@ div { ...@@ -10,10 +10,9 @@ div {
span { span {
font-weight: bold; font-weight: bold;
a { a {
text-decoration: none; text-decoration: none; /* where will this comment go? */
color: green; color: green;
content: "▲"; /* what about this comment? */ border: 1px $blah red;
border: 1px $blah red;
} }
/* yet another comment that should be preserved */ /* yet another comment that should be preserved */
display: inline-block; display: inline-block;
...@@ -44,4 +43,10 @@ div { ...@@ -44,4 +43,10 @@ div {
a: b; a: b;
} }
} }
empty_with_comment {
/* hey now */
span {
c: d;
}
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment