Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
0e72aa2c
Commit
0e72aa2c
authored
Mar 01, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a new (passing) test case to check comment preservation and removal.
parent
4390954e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
3 deletions
+98
-3
input.scss
spec/basic/06_nesting_and_comments/input.scss
+53
-0
output.css
spec/basic/06_nesting_and_comments/output.css
+36
-0
test.scss
test.scss
+9
-3
No files found.
spec/basic/06_nesting_and_comments/input.scss
0 → 100644
View file @
0e72aa2c
$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
spec/basic/06_nesting_and_comments/output.css
0 → 100644
View file @
0e72aa2c
/* 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
;
}
test.scss
View file @
0e72aa2c
...
...
@@ -10,10 +10,9 @@ div {
span
{
font-weight
:
bold
;
a
{
text-decoration
:
none
;
text-decoration
:
none
;
/* where will this comment go? */
color
:
green
;
content
:
"▲"
;
border
:
1px
$blah
red
;
/* what about this comment? */
border
:
1px
$blah
red
;
}
/* yet another comment that should be preserved */
display
:
inline-block
;
...
...
@@ -44,4 +43,10 @@ div {
a
:
b
;
}
}
empty_with_comment
{
/* hey now */
span
{
c
:
d
;
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment