Luke Page
75a92bdc44
Add tests for static urls
2012-12-28 16:40:06 +00:00
Luke Page
addf87a75f
Fix browser tests by moving url re-writing tests to urls.less. Also fix browser rootpath.
2012-12-28 12:38:49 +00:00
Salim Bensiali
37729e17af
Added missing newline at end of file
2012-12-27 20:43:55 +00:00
Salim Bensiali
e59a93b5fd
Relative URLs in LESS files should be relative to the file that defines them.
...
It is up to the parser and compiler to rewrite them when those files are
imported by another LESS file.
- Modified and added test cases for import and import-once rules
- Fixed difference between client side and server side handling of relative urls
- Added a -rootpath option to lessc to specify another base path for the url
rewriting. By default, rootpath=''
2012-12-27 20:40:16 +00:00
Luke Page
b0d4135eee
Fix comment chunking. Fixes #1082
2012-12-22 18:36:09 +00:00
Luke Page
8cfe7acdae
make import-once use the full path, not the possibly relative path to determine if an import has already been included
2012-12-22 10:21:28 +00:00
Luke Page
eb7242da30
Test that import paths load from the current directory first
2012-12-22 07:53:41 +00:00
Luke Page
8325548b7f
bad error message trying to assign @@var. Fixes #1077
2012-12-16 08:57:16 +00:00
Luke Page
6554117643
Add initial browser test suite using phantomjs for headless testing and jasmine
2012-12-16 08:45:51 +00:00
Luke Page
e69acbdc51
basic comments parsing in mixin arguments. comments need more work and a general solution though. fixes #1071
2012-12-11 21:38:39 +00:00
Luke Page
033abfd8be
do not divide by 100 when doing maths and keeping the %. Fixes #1069
2012-12-11 21:38:38 +00:00
Toby Cole
d47668f4a2
Updating parser to allow dimensions starting '+'
...
According to http://www.w3.org/TR/CSS2/syndata.html#numbers ,
numbers may start with a '+'.
Also updates the test suite to include at least one dimension
starting with '+'
2012-12-09 16:24:18 +00:00
Luke Page
2d73502955
Fix tests and report error at index -1 so it is a valid index
2012-12-09 15:42:14 +00:00
Luke Page
e3268e12b2
detect parse errors, even with an import. fixes #1053
2012-12-08 13:38:22 +00:00
Luke Page
650073e4f1
Scope fix - default parameters are evaluated in the mixin scope, not the
...
caller scope. Fixes #973 .
2012-11-29 19:48:30 +00:00
Luke Page
60b2aa9a77
Fix multiple scoping issues with variables. Fixes #878
2012-11-29 18:40:45 +00:00
Luke Page
952960c934
20% of a colour is not 0.20 but 51. fixes #454 . Fix from @unknownbrackets
2012-11-29 16:27:55 +00:00
Luke Page
8a6c5e9e4e
Add support for @namespace and namespace combinators. Fixes #408
2012-11-28 06:56:50 +00:00
Luke Page
8fa2137aa3
support mixin calling when using & to stack classes. Fixes #1026
2012-11-27 20:42:33 +00:00
Luke Page
5dc7ff50f0
Fix argument matching. Fixes #1036
2012-11-27 13:14:04 +00:00
Luke Page
e5fd5abc60
Do not require default mixin. Fixes #926
2012-11-27 09:28:19 +00:00
Luke Page
58787596ec
Mixin guards take units into account. Fixes #855
2012-11-27 08:36:31 +00:00
Luke Page
eabd8ac1ca
add unit function. Fixes #307
2012-11-27 08:21:21 +00:00
Luke Page
dddda0b0d3
Add support for unicode descriptors. Fixes #1107
2012-11-05 20:30:49 +00:00
Luke Page
6ec856097c
self referencing variable gives a proper error (no stack overflow). Fixes #972
2012-10-29 20:22:05 +00:00
Luke Page
0601933239
Fix issue with media queries inside mixins. fixes #999
2012-10-29 19:57:19 +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
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
776a5d87e5
add more scope tests - test what the current behaviour is
2012-10-23 17:22:43 +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
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
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
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
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
Luke Page
538097ec30
Unit tests for debug numbers
2012-10-07 12:16:02 +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