Commit Graph

904 Commits

Author SHA1 Message Date
Jakob Stoeck
d5099742d4 only cache imported files when not in development mode, fixes #346, fixes #47 2012-10-28 14:30:41 +00:00
tscheinecker
1f19a043a5 only include the first @charset definition - subsequent ones will be
rendered as a comment + debugInfo when debugging is enabled.
2012-10-28 14:06:56 +00:00
Luke Page
f271800353 Support multiple semi-colons like css. Fixes #606 2012-10-25 14:53:47 +01:00
Luke Page
1175ddc01c Fixi important on mixin calls when mixin has rulesets or comments 2012-10-25 11:52:07 +01:00
unknown
f7959b7190 call less.watch() in non dev mode FIXED 2012-10-25 07:56:11 +01:00
Luke Page
df20aae183 Fix error message when performing an operation on a keyword 2012-10-25 07:45:11 +01:00
Luke Page
f3a6761dc5 Look through all scopes for a mixin before giving up. Fixes #413 again 2012-10-24 20:41:32 +01:00
Luke Page
38d2c57016 Make less.js ignore nodes in its own path so infinite recursion does not happen. Fixes #413 2012-10-24 20:16:10 +01:00
Luke Page
31ce31295c Fix #186 - allow selectors to contain other selectors 2012-10-24 14:50:44 +01:00
Luke Page
461b3704fc Add semi-colons to error function 2012-10-23 17:23:51 +01:00
Luke Page
776a5d87e5 add more scope tests - test what the current behaviour is 2012-10-23 17:22:43 +01:00
Luke Page
5325291f36 Update version number on index 2012-10-23 17:05:47 +01:00
Luke Page
e1485dd706 Fix #990 - error message incorrect 2012-10-21 16:16:51 +01:00
Luke Page
7334bcc34d Add tests for hsv and hsva 2012-10-21 15:38:29 +01:00
Mehran Kholdi
610fe7b464 Fixed a typo in HSV implementation 2012-10-21 15:31:12 +01:00
Mehran Kholdi
e1dc5a18d1 Cleaned up parts of functions.js
making the code more lint-friendly
2012-10-21 15:31:11 +01:00
Mehran Kholdi
695af3d597 Added HSV and HSVA helpers 2012-10-21 15:31:10 +01:00
Luke Page
abf87255f7 Only output stack if it is not a less error 2012-10-21 15:27:06 +01:00
Luke Page
0ab748371c basic support in definition, clean up and tests 2012-10-21 15:20:24 +01:00
Luke Page
587d6c2338 Add support for ';' as a delimiter 2012-10-21 15:20:24 +01:00
Luke Page
1990d8336f Fix problem with name arguments with arguments variable and if you've specified all the arguments 2012-10-21 15:20:23 +01:00
Charles Lowell
fc8393d555 alternative to throwing an object literal.
create a real exception and extend it with the
custom properties that less needs to satisfy its
error generator. An alternative to the solution
proposed in cloudhead/less.js#963
2012-10-21 15:15:45 +01:00
Luke Page
68297d7e38 update changelog for 1.3.1 v1.3.1 2012-10-18 09:10:25 +02:00
Luke Page
9a46f67f44 (dist) build 1.3.1 2012-10-17 20:15:20 +01:00
Simone Deponti
8abc60ef26 Minor fixes.
Fixed a bug that could appear with compression enabled,
and minor tabbing issues in tests.
2012-10-07 12:16:10 +01:00
Simone Deponti
54c7d12ba3 Fixed path replacements in text a little bit better. 2012-10-07 12:16:09 +01:00
Simone Deponti
dc12632f7b Completed tests.
Made a minor modification to the test runner to best reuse tests
in these cases.
2012-10-07 12:16:09 +01:00
Simone Deponti
ebc41e5c4b Fixed nested media bug. 2012-10-07 12:16:08 +01:00
Simone Deponti
1b0b84551f Wrapped ruleset debug info passing in condition. 2012-10-07 12:16:07 +01:00
Simone Deponti
126667d4a0 Removed the passing around of an env.filename that is wrong when doing imports. 2012-10-07 12:16:06 +01:00
Simone Deponti
fd7a829079 getLocation() seems to return lines starting at 0, therefore we have to add 1.
This fixes the off-by-one bug,
and is consistent with what is done at line 238 in 'parser.js'.
2012-10-07 12:16:06 +01:00
Simone Deponti
28424ed6b9 Fixed debug info test (with comments).
Some line numbers were incorrectly off-by-one.
2012-10-07 12:16:05 +01:00
Simone Deponti
bbdcc02c8b Fixed some tests.
* Import filenames are okay, line numbers are off by one in some cases
 * The nested media query still makes .tst show up as undefined
2012-10-07 12:16:04 +01:00
Simone Deponti
959e22f5ff Added media query support.
* env.dumpLineNumbers was being lost when doing "offline" compilation
   (within node.js)
 * Added documentation for the changed options
 * --line-numbers now takes a parameter
   (either "comments", "mediaquery" or "all")
 * The system can now again output mediaqueries for FireLESS
 * Moved comments tests in debug/comments, will duplicate
   for mediaquery and for "all"

Everything is still utterly broken though, tests still fail.
2012-10-07 12:16:03 +01:00
Simone Deponti
84908b0038 Updated .gitignore (for emacs) 2012-10-07 12:16:03 +01:00
Luke Page
538097ec30 Unit tests for debug numbers 2012-10-07 12:16:02 +01:00
Vsevolod Vlasov
2165f29a6f New line is now only inserted between rulesets when not in compress mode. 2012-10-07 12:16:01 +01:00
Vsevolod Vlasov
ccfa7402a1 Added ruleset source line number dumping support for debugging purposes. 2012-10-07 12:16:01 +01:00
Will
5eca0142c9 Check XHR return type appropriately
Asynchronous file XHRs need to listen for onreadystatechange.
2012-10-07 12:09:47 +01:00
Will
6bdd800bb6 Allow configuration of asynchronous XHR
Set less.async and/or less.fileAsync to true before including less.js to
force asynchronous XHR requests to be used.  fileAsync is introduced
as a separate setting to maintain existing semantics, as previously changing
less.async to true would only affect http protocol XHRs.
2012-10-07 12:09:47 +01:00
Synchro
f8bee84fdf Implement tint and shade functions 2012-09-23 17:16:23 +01:00
Dustin Cass
8019439eb4 Pass env with toCSS in function call evaluation; Add tests; Fixes #957 2012-09-23 17:09:52 +01:00
Luke Page
819d6b0ce6 Support for escaped characters in attributes and unit tests moved into css-escapes 2012-09-23 17:06:21 +01:00
Thomas Grainger
2ee4a47c93 add namespaced element selector test case from angular.js 2012-09-10 16:20:40 +01:00
Luke Page
55d6e5a0ba Allow multiline javascript expressions, fixes #885 2012-09-09 10:35:27 +01:00
Luke Page
559231a4db Fix unquoted url's, remove special handling of data. Fixes #733 2012-09-09 10:30:55 +01:00
Luke Page
3031517c13 Review comments from @cloudhead - alter chunker to not chunk @{X} and
simplify process and depreciated != deprecated
2012-09-09 10:27:22 +01:00
Luke Page
7f466c1bfe New selector interpolation 2012-09-02 11:47:41 +01:00
Luke Page
f6917c8fa6 At least catch no browser storage rather than balking 2012-09-01 17:12:32 +01:00
Luke Page
5f99bd22e9 Fix error messages in the browser for imported files with duplicate names (different directory) and links. Fixes #932 2012-09-01 16:45:46 +01:00