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 :.
selectors: {
adjacentSpace: false, // div+ nav Android stock browser hack
ie7Hack: false, // *+html hack
- special: /(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right|:placeholder|:host|::content|\/deep\/|::shadow|^,)/ // special selectors which prevent merging
+ special: /(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right|:placeholder|:host|:content|\/deep\/|:shadow|:selection|^,)/ // special selectors which prevent merging
},
units: {
ch: true,
':placeholder{color:red}b{color:red}',
':placeholder{color:red}b{color:red}'
],
+ 'rules with not-so-well-supported pseudo classes should not be merged #6': [
+ ':selection{color:red}b{color:red}',
+ ':selection{color:red}b{color:red}'
+ ],
'rules with :host Polymer pseudo class should not be merged into': [
':host{color:red}b{color:red}',
':host{color:red}b{color:red}'