Adds support for @conter-style at-rule.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 23 Nov 2014 11:11:12 +0000 (11:11 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 23 Nov 2014 11:11:40 +0000 (11:11 +0000)
History.md
lib/selectors/tokenizer.js
test/integration-test.js

index 602991d..28b2e06 100644 (file)
@@ -2,6 +2,7 @@
 ==================
 
 * Adds more granular control over compatibility settings.
+* Adds support for @counter-style at-rule.
 * Allows `target` option to be a path to a folder instead of a file.
 * Allows disabling rounding precision. By [@superlukas](https://github.com/superlukas).
 * Breaks 2.x compatibility for using CleanCSS as a function.
index d5923d5..b44af56 100644 (file)
@@ -1,7 +1,7 @@
 var Chunker = require('../utils/chunker');
 var Splitter = require('../utils/splitter');
 
-var flatBlock = /(^@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport)|\\@.+?)/;
+var flatBlock = /(^@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/;
 var WHITESPACE = /\s/g;
 var MULTI_WHITESPACE = /\s{2,}/g;
 var WHITESPACE_COLON = / ?: ?/g;
index cf9dcac..3aeee51 100644 (file)
@@ -2115,7 +2115,8 @@ title']{display:block}",
     '@supports': '@supports (display:flexbox){.flex{display:flexbox}}',
     '@-ms-viewport': '@-ms-viewport{width:device-width}',
     '@-o-viewport': '@-o-viewport{width:device-width}',
-    '@viewport': '@viewport{width:device-width}'
+    '@viewport': '@viewport{width:device-width}',
+    '@counter-style': '@counter-style triangle{system:cyclic;symbols:‣;suffix:" "}'
   }),
   'background size': cssContext({
     'with background-position': 'a{background:url(top.jpg) 50% 0/auto 25% no-repeat}',