Fixes #543 - better "comment in body" handling.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 25 Apr 2015 08:15:31 +0000 (09:15 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 25 Apr 2015 08:42:18 +0000 (09:42 +0100)
commit05aac31b6703c9fec8b687f770bf0f70b90ba925
treec4ab99dd03bc3a11f823c0aa49297f1702ed01b3
parent397c74911d5577920098901b3cb40395e180c803
Fixes #543 - better "comment in body" handling.

So instead of keeping comments in a property list we get them out
of every property.

It is a bit tricky as comments escaped at the beginning need to be
tracked and saved, but ones from the middle or end of the value has
to be saved for later (see `innerProperties`) and tracked after the
property even if they are moved before it.

See tests for a better picture.
History.md
lib/tokenizer/extract-properties.js
test/fixtures/issue-543-min.css [new file with mode: 0644]
test/fixtures/issue-543.css [new file with mode: 0644]
test/selectors/optimizers/simple-test.js
test/tokenizer/tokenizer-test.js