less 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +4 -0
  3. data/Gemfile +1 -1
  4. data/less.gemspec +1 -1
  5. data/lib/less/defaults.rb +3 -3
  6. data/lib/less/java_script/v8_context.rb +1 -1
  7. data/lib/less/js/.gitattributes +3 -2
  8. data/lib/less/js/.gitignore +18 -2
  9. data/lib/less/js/.jshintrc +11 -0
  10. data/lib/less/js/CHANGELOG.md +87 -2
  11. data/lib/less/js/CONTRIBUTING.md +4 -3
  12. data/lib/less/js/Gruntfile.js +290 -0
  13. data/lib/less/js/README.md +342 -12
  14. data/lib/less/js/benchmark/benchmark.less +194 -194
  15. data/lib/less/js/benchmark/less-benchmark.js +9 -10
  16. data/lib/less/js/bin/lessc +154 -12
  17. data/lib/less/js/bower.json +18 -0
  18. data/lib/less/js/build.gradle +347 -0
  19. data/lib/less/js/build/README.md +350 -0
  20. data/lib/less/js/build/browser-header.js +4 -0
  21. data/lib/less/js/build/build.yml +160 -0
  22. data/lib/less/js/build/require-rhino.js +7 -2
  23. data/lib/less/js/build/rhino-header.js +4 -0
  24. data/lib/less/js/build/rhino-modules.js +131 -0
  25. data/lib/less/js/build/tasks/.gitkeep +1 -0
  26. data/lib/less/js/dist/less-1.5.0.js +6914 -0
  27. data/lib/less/js/dist/less-1.5.0.min.js +13 -0
  28. data/lib/less/js/dist/less-1.5.1.js +6941 -0
  29. data/lib/less/js/dist/less-1.5.1.min.js +13 -0
  30. data/lib/less/js/dist/less-1.6.0.js +7485 -0
  31. data/lib/less/js/dist/less-1.6.0.min.js +16 -0
  32. data/lib/less/js/dist/less-1.6.1.js +7513 -0
  33. data/lib/less/js/dist/less-1.6.1.min.js +16 -0
  34. data/lib/less/js/dist/less-1.6.2.js +7624 -0
  35. data/lib/less/js/dist/less-1.6.2.min.js +16 -0
  36. data/lib/less/js/dist/less-rhino-1.5.1.js +6831 -0
  37. data/lib/less/js/dist/less-rhino-1.6.2.js +9017 -0
  38. data/lib/less/js/dist/lessc-rhino-1.6.2.js +449 -0
  39. data/lib/less/js/gradle/wrapper/gradle-wrapper.jar +0 -0
  40. data/lib/less/js/gradle/wrapper/gradle-wrapper.properties +6 -0
  41. data/lib/less/js/gradlew +164 -0
  42. data/lib/less/js/gradlew.bat +90 -0
  43. data/lib/less/js/lib/less/browser.js +482 -367
  44. data/lib/less/js/lib/less/colors.js +0 -1
  45. data/lib/less/js/lib/less/encoder.js +4 -0
  46. data/lib/less/js/lib/less/env.js +50 -19
  47. data/lib/less/js/lib/less/extend-visitor.js +66 -41
  48. data/lib/less/js/lib/less/functions.js +309 -104
  49. data/lib/less/js/lib/less/import-visitor.js +21 -10
  50. data/lib/less/js/lib/less/index.js +90 -68
  51. data/lib/less/js/lib/less/join-selector-visitor.js +11 -4
  52. data/lib/less/js/lib/less/lessc_helper.js +56 -45
  53. data/lib/less/js/lib/less/parser.js +830 -460
  54. data/lib/less/js/lib/less/rhino.js +380 -58
  55. data/lib/less/js/lib/less/source-map-output.js +141 -0
  56. data/lib/less/js/lib/less/to-css-visitor.js +215 -0
  57. data/lib/less/js/lib/less/tree.js +57 -5
  58. data/lib/less/js/lib/less/tree/alpha.js +13 -5
  59. data/lib/less/js/lib/less/tree/anonymous.js +11 -5
  60. data/lib/less/js/lib/less/tree/assignment.js +11 -5
  61. data/lib/less/js/lib/less/tree/call.js +19 -8
  62. data/lib/less/js/lib/less/tree/color.js +59 -36
  63. data/lib/less/js/lib/less/tree/comment.js +17 -4
  64. data/lib/less/js/lib/less/tree/condition.js +3 -3
  65. data/lib/less/js/lib/less/tree/dimension.js +161 -153
  66. data/lib/less/js/lib/less/tree/directive.js +39 -18
  67. data/lib/less/js/lib/less/tree/element.js +41 -18
  68. data/lib/less/js/lib/less/tree/expression.js +11 -5
  69. data/lib/less/js/lib/less/tree/extend.js +11 -1
  70. data/lib/less/js/lib/less/tree/import.js +34 -20
  71. data/lib/less/js/lib/less/tree/javascript.js +16 -10
  72. data/lib/less/js/lib/less/tree/keyword.js +5 -2
  73. data/lib/less/js/lib/less/tree/media.js +39 -22
  74. data/lib/less/js/lib/less/tree/mixin.js +135 -56
  75. data/lib/less/js/lib/less/tree/negative.js +4 -2
  76. data/lib/less/js/lib/less/tree/operation.js +17 -12
  77. data/lib/less/js/lib/less/tree/paren.js +5 -2
  78. data/lib/less/js/lib/less/tree/quoted.js +9 -6
  79. data/lib/less/js/lib/less/tree/rule.js +39 -21
  80. data/lib/less/js/lib/less/tree/ruleset.js +229 -145
  81. data/lib/less/js/lib/less/tree/selector.js +101 -34
  82. data/lib/less/js/lib/less/tree/unicode-descriptor.js +4 -3
  83. data/lib/less/js/lib/less/tree/url.js +33 -11
  84. data/lib/less/js/lib/less/tree/value.js +13 -6
  85. data/lib/less/js/lib/less/tree/variable.js +13 -8
  86. data/lib/less/js/lib/less/visitor.js +117 -25
  87. data/lib/less/js/lib/source-map/source-map-0.1.31.js +1933 -0
  88. data/lib/less/js/lib/source-map/source-map-footer.js +4 -0
  89. data/lib/less/js/lib/source-map/source-map-header.js +3 -0
  90. data/lib/less/js/package.json +30 -15
  91. data/lib/less/js/test/browser/common.js +131 -56
  92. data/lib/less/js/test/browser/css/global-vars/simple.css +3 -0
  93. data/lib/less/js/test/browser/css/modify-vars/simple.css +8 -0
  94. data/lib/less/js/test/browser/css/relative-urls/urls.css +8 -9
  95. data/lib/less/js/test/browser/css/rootpath-relative/urls.css +0 -1
  96. data/lib/less/js/test/browser/css/rootpath/urls.css +0 -1
  97. data/lib/less/js/test/browser/css/urls.css +18 -14
  98. data/lib/less/js/test/browser/es5.js +27 -0
  99. data/lib/less/js/test/{less/errors/color-operation-error.less → browser/less/console-errors/test-error.less} +0 -0
  100. data/lib/less/js/test/browser/less/console-errors/test-error.txt +2 -0
  101. data/lib/less/js/test/browser/less/global-vars/simple.less +3 -0
  102. data/lib/less/js/test/browser/less/modify-vars/imports/simple2.less +4 -0
  103. data/lib/less/js/test/browser/less/modify-vars/simple.less +8 -0
  104. data/lib/less/js/test/browser/less/relative-urls/urls.less +1 -1
  105. data/lib/less/js/test/browser/less/rootpath-relative/urls.less +1 -1
  106. data/lib/less/js/test/browser/less/rootpath/urls.less +1 -1
  107. data/lib/less/js/test/browser/less/urls.less +9 -1
  108. data/lib/less/js/test/browser/phantom-runner.js +112 -103
  109. data/lib/less/js/test/browser/runner-browser-options.js +42 -0
  110. data/lib/less/js/test/browser/{runner-browser.js → runner-browser-spec.js} +7 -2
  111. data/lib/less/js/test/browser/runner-console-errors.js +5 -0
  112. data/lib/less/js/test/browser/runner-errors-options.js +5 -0
  113. data/lib/less/js/test/browser/runner-errors-spec.js +4 -0
  114. data/lib/less/js/test/browser/runner-global-vars-options.js +4 -0
  115. data/lib/less/js/test/browser/runner-global-vars-spec.js +3 -0
  116. data/lib/less/js/test/browser/runner-legacy-options.js +4 -0
  117. data/lib/less/js/test/browser/{runner-legacy.js → runner-legacy-spec.js} +1 -4
  118. data/lib/less/js/test/browser/runner-main-options.js +15 -0
  119. data/lib/less/js/test/browser/runner-main-spec.js +3 -0
  120. data/lib/less/js/test/browser/runner-modify-vars-options.js +2 -0
  121. data/lib/less/js/test/browser/runner-modify-vars-spec.js +43 -0
  122. data/lib/less/js/test/browser/runner-no-js-errors-options.js +4 -0
  123. data/lib/less/js/test/browser/runner-no-js-errors-spec.js +4 -0
  124. data/lib/less/js/test/browser/runner-production-options.js +3 -0
  125. data/lib/less/js/test/browser/{runner-production.js → runner-production-spec.js} +1 -3
  126. data/lib/less/js/test/browser/runner-relative-urls-options.js +3 -0
  127. data/lib/less/js/test/browser/{runner-relative-urls.js → runner-relative-urls-spec.js} +1 -2
  128. data/lib/less/js/test/browser/runner-rootpath-options.js +3 -0
  129. data/lib/less/js/test/browser/runner-rootpath-relative-options.js +4 -0
  130. data/lib/less/js/test/browser/{runner-rootpath-relative.js → runner-rootpath-relative-spec.js} +1 -3
  131. data/lib/less/js/test/browser/{runner-rootpath.js → runner-rootpath-spec.js} +1 -2
  132. data/lib/less/js/test/browser/test-runner-template.tmpl +47 -0
  133. data/lib/less/js/test/css/colors.css +7 -0
  134. data/lib/less/js/test/css/comments.css +9 -4
  135. data/lib/less/js/test/css/compression/compression.css +3 -2
  136. data/lib/less/js/test/css/css-3.css +17 -5
  137. data/lib/less/js/test/css/css-guards.css +37 -0
  138. data/lib/less/js/test/css/debug/linenumbers-all.css +6 -0
  139. data/lib/less/js/test/css/debug/linenumbers-comments.css +5 -0
  140. data/lib/less/js/test/css/debug/linenumbers-mediaquery.css +5 -0
  141. data/lib/less/js/test/css/empty.css +0 -0
  142. data/lib/less/js/test/css/extend-chaining.css +9 -0
  143. data/lib/less/js/test/css/extend-selector.css +10 -2
  144. data/lib/less/js/test/css/extract-and-length.css +133 -0
  145. data/lib/less/js/test/css/functions.css +23 -10
  146. data/lib/less/js/test/css/globalVars/extended.css +12 -0
  147. data/lib/less/js/test/css/globalVars/simple.css +6 -0
  148. data/lib/less/js/test/css/import-inline.css +5 -0
  149. data/lib/less/js/test/css/import-once.css +12 -0
  150. data/lib/less/js/test/css/import-reference.css +49 -0
  151. data/lib/less/js/test/css/import.css +0 -2
  152. data/lib/less/js/test/css/media.css +21 -5
  153. data/lib/less/js/test/css/merge.css +26 -0
  154. data/lib/less/js/test/css/mixins-guards-default-func.css +129 -0
  155. data/lib/less/js/test/css/mixins-guards.css +6 -0
  156. data/lib/less/js/test/css/mixins-important.css +7 -0
  157. data/lib/less/js/test/css/mixins-interpolated.css +39 -0
  158. data/lib/less/js/test/css/mixins.css +20 -0
  159. data/lib/less/js/test/css/modifyVars/extended.css +9 -0
  160. data/lib/less/js/test/css/no-output.css +0 -0
  161. data/lib/less/js/test/css/parens.css +3 -0
  162. data/lib/less/js/test/css/property-name-interp.css +20 -0
  163. data/lib/less/js/test/css/selectors.css +12 -0
  164. data/lib/less/js/test/css/static-urls/urls.css +7 -4
  165. data/lib/less/js/test/css/strings.css +3 -0
  166. data/lib/less/js/test/css/url-args/urls.css +56 -0
  167. data/lib/less/js/test/css/urls.css +21 -9
  168. data/lib/less/js/test/index.js +45 -0
  169. data/lib/less/js/test/less-test.js +234 -191
  170. data/lib/less/js/test/less/colors.less +6 -0
  171. data/lib/less/js/test/less/comments.less +7 -1
  172. data/lib/less/js/test/less/compression/compression.less +21 -1
  173. data/lib/less/js/test/less/css-3.less +12 -0
  174. data/lib/less/js/test/less/css-guards.less +99 -0
  175. data/lib/less/js/test/less/debug/linenumbers.less +11 -1
  176. data/lib/less/js/test/less/empty.less +0 -0
  177. data/lib/less/js/test/less/errors/add-mixed-units.txt +4 -2
  178. data/lib/less/js/test/less/errors/add-mixed-units2.txt +4 -2
  179. data/lib/less/js/test/less/errors/color-func-invalid-color.less +3 -0
  180. data/lib/less/js/test/less/errors/color-func-invalid-color.txt +4 -0
  181. data/lib/less/js/test/less/errors/css-guard-default-func.less +4 -0
  182. data/lib/less/js/test/less/errors/css-guard-default-func.txt +4 -0
  183. data/lib/less/js/test/less/errors/import-subfolder2.txt +4 -2
  184. data/lib/less/js/test/less/errors/javascript-undefined-var.less +3 -0
  185. data/lib/less/js/test/less/errors/javascript-undefined-var.txt +4 -0
  186. data/lib/less/js/test/less/errors/mixins-guards-default-func-1.less +9 -0
  187. data/lib/less/js/test/less/errors/mixins-guards-default-func-1.txt +4 -0
  188. data/lib/less/js/test/less/errors/mixins-guards-default-func-2.less +9 -0
  189. data/lib/less/js/test/less/errors/mixins-guards-default-func-2.txt +4 -0
  190. data/lib/less/js/test/less/errors/mixins-guards-default-func-3.less +9 -0
  191. data/lib/less/js/test/less/errors/mixins-guards-default-func-3.txt +4 -0
  192. data/lib/less/js/test/less/errors/multiple-guards-on-css-selectors.less +4 -0
  193. data/lib/less/js/test/less/errors/multiple-guards-on-css-selectors.txt +4 -0
  194. data/lib/less/js/test/less/errors/multiple-guards-on-css-selectors2.less +4 -0
  195. data/lib/less/js/test/less/errors/multiple-guards-on-css-selectors2.txt +4 -0
  196. data/lib/less/js/test/less/errors/parse-error-curly-bracket.less +4 -1
  197. data/lib/less/js/test/less/errors/parse-error-curly-bracket.txt +4 -2
  198. data/lib/less/js/test/less/errors/parse-error-extra-parens.less +5 -0
  199. data/lib/less/js/test/less/errors/parse-error-extra-parens.txt +3 -0
  200. data/lib/less/js/test/less/errors/parse-error-missing-bracket.txt +2 -2
  201. data/lib/less/js/test/less/errors/parse-error-missing-parens.less +5 -0
  202. data/lib/less/js/test/less/errors/parse-error-missing-parens.txt +3 -0
  203. data/lib/less/js/test/less/errors/property-asterisk-only-name.less +3 -0
  204. data/lib/less/js/test/less/errors/property-asterisk-only-name.txt +4 -0
  205. data/lib/less/js/test/less/errors/property-interp-not-defined.less +1 -0
  206. data/lib/less/js/test/less/errors/property-interp-not-defined.txt +2 -0
  207. data/lib/less/js/test/less/errors/svg-gradient1.less +3 -0
  208. data/lib/less/js/test/less/errors/svg-gradient1.txt +4 -0
  209. data/lib/less/js/test/less/errors/svg-gradient2.less +3 -0
  210. data/lib/less/js/test/less/errors/svg-gradient2.txt +4 -0
  211. data/lib/less/js/test/less/errors/svg-gradient3.less +3 -0
  212. data/lib/less/js/test/less/errors/svg-gradient3.txt +4 -0
  213. data/lib/less/js/test/less/errors/unit-function.less +3 -0
  214. data/lib/less/js/test/less/errors/unit-function.txt +4 -0
  215. data/lib/less/js/test/less/extend-chaining.less +12 -0
  216. data/lib/less/js/test/less/extend-selector.less +15 -0
  217. data/lib/less/js/test/less/extract-and-length.less +133 -0
  218. data/lib/less/js/test/less/functions.less +15 -2
  219. data/lib/less/js/test/less/globalVars/extended.json +5 -0
  220. data/lib/less/js/test/less/globalVars/extended.less +10 -0
  221. data/lib/less/js/test/less/globalVars/simple.json +3 -0
  222. data/lib/less/js/test/less/globalVars/simple.less +3 -0
  223. data/lib/less/js/test/less/import-inline.less +2 -0
  224. data/lib/less/js/test/less/import-once.less +2 -0
  225. data/lib/less/js/test/less/import-reference.less +18 -0
  226. data/lib/less/js/test/less/import/import-and-relative-paths-test.less +11 -0
  227. data/lib/less/js/test/less/import/import-reference.less +43 -0
  228. data/lib/less/js/test/less/import/import-test-f.less +5 -0
  229. data/lib/less/js/test/less/import/invalid-css.less +1 -0
  230. data/lib/less/js/test/less/media.less +25 -1
  231. data/lib/less/js/test/less/merge.less +59 -0
  232. data/lib/less/js/test/less/mixins-args.less +10 -0
  233. data/lib/less/js/test/less/mixins-guards-default-func.less +195 -0
  234. data/lib/less/js/test/less/mixins-guards.less +16 -0
  235. data/lib/less/js/test/less/mixins-important.less +4 -1
  236. data/lib/less/js/test/less/mixins-interpolated.less +69 -0
  237. data/lib/less/js/test/less/mixins.less +27 -0
  238. data/lib/less/js/test/less/modifyVars/extended.json +5 -0
  239. data/lib/less/js/test/less/modifyVars/extended.less +11 -0
  240. data/lib/less/js/test/less/no-js-errors/no-js-errors.less +3 -0
  241. data/lib/less/js/test/less/no-js-errors/no-js-errors.txt +4 -0
  242. data/lib/less/js/test/less/no-output.less +2 -0
  243. data/lib/less/js/test/less/parens.less +4 -0
  244. data/lib/less/js/test/less/property-name-interp.less +53 -0
  245. data/lib/less/js/test/less/selectors.less +13 -0
  246. data/lib/less/js/test/less/sourcemaps/basic.json +3 -0
  247. data/lib/less/js/test/less/sourcemaps/basic.less +27 -0
  248. data/lib/less/js/test/less/sourcemaps/imported.css +7 -0
  249. data/lib/less/js/test/less/strings.less +6 -0
  250. data/lib/less/js/test/less/url-args/urls.less +63 -0
  251. data/lib/less/js/test/less/urls.less +15 -0
  252. data/lib/less/js/test/rhino/test-header.js +15 -0
  253. data/lib/less/js/test/sourcemaps/basic.json +1 -0
  254. data/lib/less/js/test/sourcemaps/index.html +17 -0
  255. data/lib/less/loader.rb +48 -40
  256. data/lib/less/version.rb +1 -1
  257. data/spec/less/parser_spec.rb +15 -15
  258. metadata +146 -40
  259. data/lib/less/js/Makefile +0 -102
  260. data/lib/less/js/build/header.js +0 -9
  261. data/lib/less/js/test/browser-test-prepare.js +0 -46
  262. data/lib/less/js/test/browser/runner-errors.js +0 -5
  263. data/lib/less/js/test/browser/runner-main.js +0 -15
  264. data/lib/less/js/test/browser/template.htm +0 -10
  265. data/lib/less/js/test/less/errors/color-operation-error.txt +0 -2
@@ -0,0 +1,3 @@
1
+ describe("less.js main tests", function() {
2
+ testLessEqualsInDocument();
3
+ });
@@ -0,0 +1,2 @@
1
+ /* exported less */
2
+ var less = {};
@@ -0,0 +1,43 @@
1
+ var alreadyRun = false;
2
+
3
+ describe("less.js modify vars", function() {
4
+ beforeEach(function() {
5
+ // simulating "setUp" or "beforeAll" method
6
+ var lessOutputObj;
7
+ if (alreadyRun)
8
+ return;
9
+
10
+ alreadyRun = true;
11
+
12
+ // wait until the sheet is compiled first time
13
+ waitsFor(function() {
14
+ lessOutputObj = document.getElementById("less:test-less-simple");
15
+ return lessOutputObj !== null;
16
+ }, "first generation of less:test-less-simple", 7000);
17
+
18
+ // modify variables
19
+ runs(function() {
20
+ lessOutputObj.type = "not compiled yet";
21
+ less.modifyVars({
22
+ var1: "green",
23
+ var2: "purple",
24
+ scale: 20
25
+ });
26
+ });
27
+
28
+ // wait until variables are modified
29
+ waitsFor(function() {
30
+ lessOutputObj = document.getElementById("less:test-less-simple");
31
+ return lessOutputObj !== null && lessOutputObj.type === "text/css";
32
+ }, "second generation of less:test-less-simple", 7000);
33
+
34
+ });
35
+
36
+ testLessEqualsInDocument();
37
+ it("Should log only 2 XHR requests", function() {
38
+ var xhrLogMessages = logMessages.filter(function(item) {
39
+ return (/XHR: Getting '/).test(item);
40
+ });
41
+ expect(xhrLogMessages.length).toEqual(2);
42
+ });
43
+ });
@@ -0,0 +1,4 @@
1
+ var less = {};
2
+
3
+ less.strictUnits = true;
4
+ less.javascriptEnabled = false;
@@ -0,0 +1,4 @@
1
+ describe("less.js javascript disabled error tests", function() {
2
+ testLessErrorsInDocument();
3
+ });
4
+
@@ -0,0 +1,3 @@
1
+ var less = {};
2
+ less.env = "production";
3
+
@@ -1,7 +1,5 @@
1
- less.env = "production";
2
-
3
1
  describe("less.js production behaviour", function() {
4
2
  it("doesn't log any messages", function() {
5
3
  expect(logMessages.length).toEqual(0);
6
4
  });
7
- });
5
+ });
@@ -0,0 +1,3 @@
1
+ var less = {};
2
+ less.relativeUrls = true;
3
+
@@ -1,4 +1,3 @@
1
- less.relativeUrls = true;
2
1
  describe("less.js browser test - relative url's", function() {
3
2
  testLessEqualsInDocument();
4
- });
3
+ });
@@ -0,0 +1,3 @@
1
+ var less = {};
2
+ less.rootpath = "https://www.github.com/";
3
+
@@ -0,0 +1,4 @@
1
+ var less = {};
2
+ less.rootpath = "https://www.github.com/cloudhead/less.js/";
3
+ less.relativeUrls = true;
4
+
@@ -1,5 +1,3 @@
1
- less.rootpath = "https://www.github.com/cloudhead/less.js/";
2
- less.relativeUrls = true;
3
1
  describe("less.js browser test - rootpath and relative url's", function() {
4
2
  testLessEqualsInDocument();
5
- });
3
+ });
@@ -1,4 +1,3 @@
1
- less.rootpath = "https://www.github.com/";
2
1
  describe("less.js browser test - rootpath url's", function() {
3
2
  testLessEqualsInDocument();
4
- });
3
+ });
@@ -0,0 +1,47 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Jasmine Spec Runner</title>
6
+
7
+ <!-- generate script tags for tests -->
8
+ <% var generateScriptTags = function(allScripts) { allScripts.forEach(function(script){ %>
9
+ <script src="<%= script %>"></script>
10
+ <% }); }; %>
11
+
12
+ <!-- for each test, generate CSS/LESS link tags -->
13
+ <% scripts.src.forEach(function(fullLessName) {
14
+ var pathParts = fullLessName.split('/');
15
+ var fullCssName = fullLessName.replace(/less/g, 'css');
16
+ var lessName = pathParts[pathParts.length - 1];
17
+ var name = lessName.split('.')[0]; %>
18
+ <!-- the tags to be generated -->
19
+ <link id="original-less:test-less-<%= name %>" title="test-less-<%= name %>" rel="stylesheet/less" type="text/css" href="<%= fullLessName %>">
20
+ <link id="expected-less:test-less-<%= name %>" rel="stylesheet" type="text/css" href="<%= fullCssName %>">
21
+ <% }); %>
22
+
23
+ <!-- generate grunt-contrib-jasmine link tags -->
24
+ <% css.forEach(function(style){ %>
25
+ <link rel="stylesheet" type="text/css" href="<%= style %>">
26
+ <% }) %>
27
+
28
+ <!-- inital grunt-contrib-jasmine scripts -->
29
+ <% generateScriptTags([].concat(scripts.polyfills, scripts.jasmine)); %>
30
+
31
+ <!-- Helpers - The less options -->
32
+ <% generateScriptTags(scripts.helpers); %>
33
+
34
+ <!-- Vendor - less.js and common code -->
35
+ <% generateScriptTags(scripts.vendor); %>
36
+
37
+ <!-- Spec -->
38
+ <% generateScriptTags(scripts.specs); %>
39
+
40
+ <!-- final grunt-contrib-jasmine scripts -->
41
+ <% generateScriptTags([].concat(scripts.reporters, scripts.start)); %>
42
+ </head>
43
+
44
+ <body>
45
+ <!-- content -->
46
+ </body>
47
+ </html>
@@ -37,6 +37,9 @@
37
37
  #overflow .d {
38
38
  color: #00ff00;
39
39
  }
40
+ #overflow .e {
41
+ color: rgba(0, 31, 255, 0.42);
42
+ }
40
43
  #grey {
41
44
  color: #c8c8c8;
42
45
  }
@@ -78,3 +81,7 @@
78
81
  #alpha #hsl {
79
82
  opacity: 1;
80
83
  }
84
+ #percentage {
85
+ color: 255;
86
+ border-color: rgba(255, 0, 0, 0.5);
87
+ }
@@ -26,12 +26,12 @@
26
26
  */
27
27
  /* @group Variables
28
28
  ------------------- */
29
- #comments {
29
+ #comments,
30
+ .comments {
30
31
  /**/
31
32
  color: red;
32
33
  /* A C-style comment */
33
34
  /* A C-style comment */
34
-
35
35
  background-color: orange;
36
36
  font-size: 12px;
37
37
  /* lost comment */
@@ -53,12 +53,17 @@
53
53
  -moz-border-radius: 8px /* moz only with operation */;
54
54
  }
55
55
  .test {
56
- color: 1px //put in @b - causes problems! --->;
56
+ color: 1px;
57
57
  }
58
58
  #last {
59
59
  color: #0000ff;
60
60
  }
61
- /* *//* { *//* *//* *//* */#div {
61
+ /* */
62
+ /* { */
63
+ /* */
64
+ /* */
65
+ /* */
66
+ #div {
62
67
  color: #A33;
63
68
  }
64
69
  /* } */
@@ -1,2 +1,3 @@
1
- #colours{color1:#fea;color2:#fea;color3:rgba(255,238,170,0.1);string:"#ffeeaa"}
2
- dimensions{val:.1px;val:0;val:4cm;val:.2;val:5;angles-must-have-unit:0deg;width:auto\9}
1
+ #colours{color1:#fea;color2:#fea;color3:rgba(255,238,170,0.1);string:"#ffeeaa";/*! but not this type
2
+ Note preserved whitespace
3
+ */}dimensions{val:.1px;val:0;val:4cm;val:.2;val:5;angles-must-have-unit:0deg;durations-must-have-unit:0s;length-doesnt-have-unit:0;width:auto\9}@page{marks:none;@top-left-corner{vertical-align:top}@top-left{vertical-align:top}}.shadow^.dom,body^^.shadow{display:done}
@@ -1,7 +1,7 @@
1
1
  .comma-delimited {
2
2
  text-shadow: -1px -1px 1px #ff0000, 6px 5px 5px #ffff00;
3
3
  -moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset, 0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
4
- -webkit-transform: rotate(-0.0000000001deg);
4
+ -webkit-transform: rotate(0deg);
5
5
  }
6
6
  @font-face {
7
7
  font-family: Headline;
@@ -97,16 +97,16 @@ p::before {
97
97
  font-size: 10px;
98
98
  }
99
99
  @namespace foo url(http://www.example.com);
100
- foo | h1 {
100
+ foo|h1 {
101
101
  color: blue;
102
102
  }
103
- foo | * {
103
+ foo|* {
104
104
  color: yellow;
105
105
  }
106
- | h1 {
106
+ |h1 {
107
107
  color: red;
108
108
  }
109
- * | h1 {
109
+ *|h1 {
110
110
  color: green;
111
111
  }
112
112
  h1 {
@@ -115,3 +115,15 @@ h1 {
115
115
  .upper-test {
116
116
  UpperCaseProperties: allowed;
117
117
  }
118
+ @host {
119
+ div {
120
+ display: block;
121
+ }
122
+ }
123
+ ::distributed(input::placeholder) {
124
+ color: #b3b3b3;
125
+ }
126
+ .shadow ^ .dom,
127
+ body ^^ .shadow {
128
+ display: done;
129
+ }
@@ -0,0 +1,37 @@
1
+ .light {
2
+ color: green;
3
+ }
4
+ .see-the {
5
+ color: green;
6
+ }
7
+ .hide-the {
8
+ color: green;
9
+ }
10
+ .multiple-conditions-1 {
11
+ color: red;
12
+ }
13
+ .inheritance .test {
14
+ color: black;
15
+ }
16
+ .inheritance:hover {
17
+ color: pink;
18
+ }
19
+ .clsWithGuard {
20
+ dispaly: none;
21
+ }
22
+ .dont-split-me-up {
23
+ width: 1px;
24
+ color: red;
25
+ height: 1px;
26
+ }
27
+ + .dont-split-me-up {
28
+ sibling: true;
29
+ }
30
+ .scope-check {
31
+ sub-prop: 2px;
32
+ prop: 1px;
33
+ }
34
+ .scope-check-2 {
35
+ sub-prop: 2px;
36
+ prop: 1px;
37
+ }
@@ -41,3 +41,9 @@
41
41
  .tst2 {
42
42
  color: white;
43
43
  }
44
+ /* line 27, c:\git\less.js\test\less\debug\linenumbers.less */
45
+ @media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\0000327}}
46
+ .test {
47
+ color: red;
48
+ width: 2;
49
+ }
@@ -33,3 +33,8 @@
33
33
  .tst2 {
34
34
  color: white;
35
35
  }
36
+ /* line 27, {path}linenumbers.less */
37
+ .test {
38
+ color: red;
39
+ width: 2;
40
+ }
@@ -33,3 +33,8 @@
33
33
  .tst2 {
34
34
  color: white;
35
35
  }
36
+ @media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\0000327}}
37
+ .test {
38
+ color: red;
39
+ width: 2;
40
+ }
File without changes
@@ -51,6 +51,15 @@
51
51
  .y {
52
52
  color: z;
53
53
  }
54
+ .va,
55
+ .vb,
56
+ .vc {
57
+ color: black;
58
+ }
59
+ .vb,
60
+ .vc {
61
+ color: white;
62
+ }
54
63
  @media tv {
55
64
  .ma,
56
65
  .mb,
@@ -52,9 +52,9 @@ div.ext7,
52
52
  .c.replace + .replace .replace,
53
53
  .replace.replace .c,
54
54
  .c.replace + .replace .c,
55
- .rep_ace .rep_ace .rep_ace,
55
+ .rep_ace.rep_ace .rep_ace,
56
56
  .c.rep_ace + .rep_ace .rep_ace,
57
- .rep_ace .rep_ace .c,
57
+ .rep_ace.rep_ace .c,
58
58
  .c.rep_ace + .rep_ace .c {
59
59
  prop: copy-paste-replace;
60
60
  }
@@ -70,3 +70,11 @@ div.ext7,
70
70
  .attributes .attributes .attribute-test {
71
71
  extend: attributes2;
72
72
  }
73
+ .header .header-nav,
74
+ .footer .footer-nav {
75
+ background: red;
76
+ }
77
+ .header .header-nav:before,
78
+ .footer .footer-nav:before {
79
+ background: blue;
80
+ }
@@ -0,0 +1,133 @@
1
+ .multiunit {
2
+ length: 6;
3
+ extract: abc "abc" 1 1px 1% #112233;
4
+ }
5
+ .incorrect-index {
6
+ v1: extract(a b c, 5);
7
+ v2: extract(a, b, c, -2);
8
+ }
9
+ .scalar {
10
+ var-value: variable;
11
+ var-length: 1;
12
+ ill-index: extract(variable, 2);
13
+ name-value: name;
14
+ string-value: "string";
15
+ number-value: 12345678;
16
+ color-value: #0000ff;
17
+ rgba-value: rgba(80, 160, 240, 0.67);
18
+ empty-value: ;
19
+ name-length: 1;
20
+ string-length: 1;
21
+ number-length: 1;
22
+ color-length: 1;
23
+ rgba-length: 1;
24
+ empty-length: 1;
25
+ }
26
+ .mixin-arguments-1 {
27
+ length: 4;
28
+ extract: c | b | a;
29
+ }
30
+ .mixin-arguments-2 {
31
+ length: 4;
32
+ extract: c | b | a;
33
+ }
34
+ .mixin-arguments-3 {
35
+ length: 4;
36
+ extract: c | b | a;
37
+ }
38
+ .mixin-arguments-4 {
39
+ length: 0;
40
+ extract: extract(, 2) | extract(, 1);
41
+ }
42
+ .mixin-arguments-2 {
43
+ length: 4;
44
+ extract: c | b | a;
45
+ }
46
+ .mixin-arguments-3 {
47
+ length: 4;
48
+ extract: c | b | a;
49
+ }
50
+ .mixin-arguments-4 {
51
+ length: 3;
52
+ extract: c | b;
53
+ }
54
+ .mixin-arguments-2 {
55
+ length: 4;
56
+ extract: 3 | 2 | 1;
57
+ }
58
+ .mixin-arguments-3 {
59
+ length: 4;
60
+ extract: 3 | 2 | 1;
61
+ }
62
+ .mixin-arguments-4 {
63
+ length: 3;
64
+ extract: 3 | 2;
65
+ }
66
+ .md-space-comma {
67
+ length-1: 3;
68
+ extract-1: 1 2 3;
69
+ length-2: 3;
70
+ extract-2: 2;
71
+ }
72
+ .md-space-comma-as-args-2 {
73
+ length: 3;
74
+ extract: "x" "y" "z" | 1 2 3 | a b c;
75
+ }
76
+ .md-space-comma-as-args-3 {
77
+ length: 3;
78
+ extract: "x" "y" "z" | 1 2 3 | a b c;
79
+ }
80
+ .md-space-comma-as-args-4 {
81
+ length: 2;
82
+ extract: "x" "y" "z" | 1 2 3;
83
+ }
84
+ .md-cat-space-comma {
85
+ length-1: 3;
86
+ extract-1: 1 2 3;
87
+ length-2: 3;
88
+ extract-2: 2;
89
+ }
90
+ .md-cat-space-comma-as-args-2 {
91
+ length: 3;
92
+ extract: "x" "y" "z" | 1 2 3 | a b c;
93
+ }
94
+ .md-cat-space-comma-as-args-3 {
95
+ length: 3;
96
+ extract: "x" "y" "z" | 1 2 3 | a b c;
97
+ }
98
+ .md-cat-space-comma-as-args-4 {
99
+ length: 2;
100
+ extract: "x" "y" "z" | 1 2 3;
101
+ }
102
+ .md-cat-comma-space {
103
+ length-1: 3;
104
+ extract-1: 1, 2, 3;
105
+ length-2: 3;
106
+ extract-2: 2;
107
+ }
108
+ .md-cat-comma-space-as-args-1 {
109
+ length: 3;
110
+ extract: "x", "y", "z" | 1, 2, 3 | a, b, c;
111
+ }
112
+ .md-cat-comma-space-as-args-2 {
113
+ length: 3;
114
+ extract: "x", "y", "z" | 1, 2, 3 | a, b, c;
115
+ }
116
+ .md-cat-comma-space-as-args-3 {
117
+ length: 3;
118
+ extract: "x", "y", "z" | 1, 2, 3 | a, b, c;
119
+ }
120
+ .md-cat-comma-space-as-args-4 {
121
+ length: 0;
122
+ extract: extract(, 2) | extract(, 1);
123
+ }
124
+ .md-3D {
125
+ length-1: 2;
126
+ extract-1: a b c d, 1 2 3 4;
127
+ length-2: 2;
128
+ extract-2: 5 6 7 8;
129
+ length-3: 4;
130
+ extract-3: 7;
131
+ length-4: 1;
132
+ extract-4: 8;
133
+ }