Prevent rules with :selection from being merged (#814)
authorsilverwind <me@silverwind.io>
Mon, 26 Sep 2016 04:36:31 +0000 (06:36 +0200)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 26 Sep 2016 04:36:31 +0000 (06:36 +0200)
commit2b4462c69f834792f942a88f026fa7b500ee6c02
tree74baa2c75fe0a88f84f90667ae1376f20e24e729
parent2b412f95e0c9424ec196f807af5149792a5ed1b2
Prevent rules with :selection from being merged (#814)

Firefox does not support :selection, only :-moz-selection. This change
adds :selection to the list of problematic selectors to prevent invalid
rules from being created.

Also cleaned up the regex, : and :: are equivalent in this regex,
so reduced all section to just :.
lib/utils/compatibility.js
test/integration-test.js