[Pkg-javascript-commits] [less.js] 283/285: support @counter-style. Fixes #2204

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:24:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v2.0.0
in repository less.js.

commit 4dab36dade96160d4a68b37ea38b6782849c35f9
Author: Luke Page <luke.a.page at gmail.com>
Date:   Sun Nov 9 14:13:53 2014 +0000

    support @counter-style. Fixes #2204
---
 lib/less/parser/parser.js | 4 ++++
 test/css/css-3.css        | 5 +++++
 test/less/css-3.less      | 5 +++++
 3 files changed, 14 insertions(+)

diff --git a/lib/less/parser/parser.js b/lib/less/parser/parser.js
index adca2aa..5893cc9 100644
--- a/lib/less/parser/parser.js
+++ b/lib/less/parser/parser.js
@@ -1290,6 +1290,10 @@ var Parser = function Parser(context, imports, fileInfo) {
                         hasBlock = true;
                         break;
                     */
+                    case "@counter-style":
+                        hasIdentifier = true;
+                        hasBlock = true;
+                        break;
                     case "@charset":
                         hasIdentifier = true;
                         hasBlock = false;
diff --git a/test/css/css-3.css b/test/css/css-3.css
index 2ed044f..53ee68f 100644
--- a/test/css/css-3.css
+++ b/test/css/css-3.css
@@ -142,3 +142,8 @@ body ^^ .shadow {
 #issue2066 {
   background: url('/images/icon-team.svg') 0 0 / contain;
 }
+ at counter-style triangle {
+  system: cyclic;
+  symbols: ‣;
+  suffix: " ";
+}
diff --git a/test/less/css-3.less b/test/less/css-3.less
index b35d0f4..8e86f39 100644
--- a/test/less/css-3.less
+++ b/test/less/css-3.less
@@ -144,3 +144,8 @@ body ^^ .shadow {
 #issue2066 {
   background: url('/images/icon-team.svg') 0 0 / contain;
 }
+ at counter-style triangle {
+  system: cyclic;
+  symbols: ‣;
+  suffix: " ";
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list