NV/CSSOM — Issue #36: Parsing comments
Author: jsmarkus
Created: 2012-02-27 15:11:07+00:00
State: open

I am going to use your parser for CSS sprites generator.

It would be convenient to parse comments as properties annotations like in the following example:

```css
.icon {
background-image: url(./arrow.png); /*sprite: spr1.png*/
width: 24px;
height: 24px;
}
```

```js
{
parentStyleSheet: null,
cssRules: [
{
parentRule: null,
parentStyleSheet: "../..",
selectorText: ".icon",
style: {
0: "background-image",
1: "width",
2: "height",
length: 3,
parentRule: "..",
_importants: {
"background-image": "",
width: "",
height: ""
},
_comments: {
"background-image": "sprite: spr1.png",
},
__starts: 6,
"background-image": "url(./arraw.png)",
width: "24px",
height: "24px"
},
__starts: 0,
__ends: 93
}
]
}
```