619 Commits

Author SHA1 Message Date
Luke Page
0e883957cc tests for import malformed 2014-07-27 20:56:21 +01:00
Luke Page
1e04f3364d better error message when import missing a semi-colon or malformed. 2014-07-27 20:47:19 +01:00
Luke Page
1ff24b4c26 do not use util.print since it is deprecated. Fixes #2081 2014-07-27 16:56:46 +01:00
jurcovicovam
c6cf6a8a6a Moved @font-face property merge test into urls.less and re-enabled
merge.less in jasmine tests.
2014-07-27 14:12:57 +02:00
jurcovicovam
8daa61f220 Merge https://github.com/less/less.js into font-face-property-merge-2-2035
Conflicts:
	test/sourcemaps/basic.json
2014-07-27 14:02:38 +02:00
jurcovicovam
c9c6ddbdfc Properties merging should work also inside directives #2035
Fixes issue #2035 - property merge inside @font-face. The _mergeRules function is now called also for directives with rules. It used to be called only for rulesets.

I had to turn off jasmine tests for merge.less, because it was replacing all urls by their assumed full paths. For example, the url(something.eot) was changed into url(http://localhost:8081/test/less/something.eot). The result did not matched with expected css and failed.

Note: I'm not sure why values order in source map changed. It does not seem to be caused by my change, it was failing before I made them.
2014-07-26 00:22:49 +02:00
jurcovicovam
0efc25ac92 Source map changed together with import inline ordering 2014-07-22 17:06:04 +02:00
jurcovicovam
864c63d27b Fix ordering of @import and @charset rules #1954 #2013
The genCss method of ruleset.js splits child nodes into two groups:
* rules,
* rulesets.

Rules are always printed first and have special handling for last rule.
Rulesets are always printed second. Wrong ordering was caused by the
condition that determined what is rule and what is ruleset.

Issue #2013: The condition made no difference between @charset and @page,
because both are compiled into tree.Directive nodes. I added isRulesetLike
method to the tree.Directive to differentiate between them.

Issue #1954: The condition treated all tree.Anonymous types as rules and
caused them to float up. That is incorrect, because `@import (inline)` is
compiled into tree.Anonymous too, but should be treated as ruleset and
stay where it is.
2014-07-22 14:46:58 +02:00
Luke Page
5e13673674 Merge branch 'master' of https://github.com/less/less.js 2014-06-22 11:24:02 +01:00
Luke Page
fc26d5c77e Fix backtracking on multiplication to support dimension /|* keyword, with or without strict maths. Fixes #2066. 2014-06-22 11:23:33 +01:00
seven-phases-max
91fdb3940f don't round values returned by colour query functions. 2014-06-19 22:43:28 +04:00
Luke Page
04cb8bdfb2 fix regression with jsifying code - all dimensions would be rounded. Fixes #2057 2014-06-18 06:18:02 +01:00
Luke Page
c872caa289 Merge pull request #1976 from peruginni/master
Added condition to check if HEX code contain only valid characters (issue #1015)
2014-06-06 08:11:50 +01:00
seven-phases-max
563c47b7d7 Fixes a regression when a mixin guard can't see the mixin parameter variables in certain cases. 2014-05-10 07:43:03 +04:00
Ondřej Macoszek
a5406a939c Added another test case for missed space in color definition 2014-05-08 12:18:28 +02:00
Ondřej Macoszek
5b8b8def23 Added more flexible check for HEX color code. Also error is now less specific. 2014-05-08 12:12:06 +02:00
Luke Page
9ad5f181dc Switch to a different js error as the text is different in new versions of node 2014-05-06 06:35:01 +01:00
Luke Page
5647d4d276 Ignore quote type when comparing values. Fixes #1992 2014-05-06 06:20:07 +01:00
Ondřej Macoszek
31ffdb8c9f Added condition to check if HEX code contain only valid characters 2014-04-15 13:20:04 +02:00
seven-phases-max
8afeae92d3 Fixed recursive mixin regression, updated tests to detect such regression in future. 2014-03-19 05:55:11 +04:00
Luke Page
0c8e117b85 update readme and rename LESS to Less 2014-02-27 20:22:47 +00:00
Luke Page
17a92e3f9b Merge pull request #1890 from roelvanduijnhoven/feature/luma-definition
Let `luma` follow spec
2014-02-27 19:53:41 +00:00
Roel van Duijnhoven
e7389a0e7a Introduce luminance function.
The behaviour of this function is identical to luma prior to LESS 1.7.
2014-02-27 08:45:24 +01:00
Roel van Duijnhoven
193ce01be9 Sync semantics of test variables and their output. 2014-02-27 08:35:52 +01:00
Luke Page
beb52739c0 allow % to be passed to the unit function. Fixes #1550 and fixes #1571 2014-02-23 17:09:33 +00:00
Luke Page
2a194e03d0 Merge branch 'master' of https://github.com/cloudchen/less.js
Conflicts:
	lib/less/browser.js
2014-02-23 08:30:50 +00:00
Luke Page
5ab0e08665 Do not evaluate css with guards if the guards fail. Fixes #1873 2014-02-21 12:37:40 +00:00
Luke Page
7c90acaae6 Fix a small scope issue with mixins when using parent selectors, introduced in 1.6.2. Fixes #1877 2014-02-21 11:22:42 +00:00
Luke Page
bf9c59025b Fixed that in some situations a mixin call into a referenced file wouldn't import media queries. Fixes #1469 2014-02-21 11:03:38 +00:00
Roel van Duijnhoven
86fee0d185 Add test case were luminance is not equal to luma. 2014-02-21 08:51:19 +01:00
Roel van Duijnhoven
4952b66b3c Let tests reflect output of new luma function. 2014-02-21 08:49:34 +01:00
Luke Page
8fa966ea18 Merge pull request #1859 from less/detached-rulesets
detached rulesets
2014-02-19 07:07:48 +00:00
seven-phases-max
768a5cbc84 minor % func improvement: preserve quote char and escaped flag, updated tests. 2014-02-18 18:56:46 +04:00
Luke Page
6117a33f50 Merge pull request #1855 from jakebellacera/adding_replace_function
Adding replace function
2014-02-17 22:32:27 +00:00
Luke Page
42aff6f35c remove bad comment 2014-02-17 19:53:35 +00:00
Luke Page
baba33ea6a Fix some bugs with detached rulesets and media queries 2014-02-17 19:15:47 +00:00
Luke Page
c730829d1d Fix one issue with media queries and detached rulesets, one to go 2014-02-16 17:50:51 +00:00
Luke Page
b46ca11286 error tests and test detached rulesets without a mixin call 2014-02-13 21:42:32 +00:00
Luke Page
e0692fa199 add scope tests to the detached ruleset test-set 2014-02-13 20:36:34 +00:00
Luke Page
c301ea6e42 Merge remote-tracking branch 'origin/master' into detached-rulesets 2014-02-12 23:42:15 +00:00
Luke Page
e3576b9c01 implement n level back-tracking and then don't absorb a parenthesis, fixing both issues with 2 new test cases 2014-02-12 23:10:52 +00:00
Luke Page
e3168e3434 add some more failing tests 2014-02-12 22:40:20 +00:00
Luke Page
55033c77ed more tests and name arguments for caller 2014-02-11 22:01:26 +00:00
Luke Page
9749d20c3d Fix tests, fix a bug in comparing values 2014-02-11 21:09:06 +00:00
seven-phases-max
68f97faf5d Fixed empty args matching for named variadics (e.g. .mixin(@var...)). 2014-02-11 19:25:20 +04:00
Luke Page
2be0b8c922 Merge remote-tracking branch 'origin/master' into detached-rulesets 2014-02-11 13:53:16 +00:00
Luke Page
f7414a1072 detached rulesets 2014-02-09 22:20:08 +00:00
seven-phases-max
09c4311594 Added support for variables in certain at-rules (keyframes, namespace, charset). 2014-02-09 13:42:01 +04:00
Luke Page
72c0cff78b Merge pull request #1847 from seven-phases-max/property-merge-with-space
Property merge with `+_` (replaces #1788)
2014-02-08 17:02:32 +00:00
Luke Page
dc80595b68 Merge branch 'master' of https://github.com/cloudhead/less.js 2014-02-08 16:46:53 +00:00