Matthew Dean
809dc509f3
Arbitrary (non-falsey) values returned from functions are cast as Anonymous nodes
2017-01-06 19:39:23 -08:00
Matthew Dean
68ea31dc89
Line and column # reporting for Node errors
2017-01-01 12:58:09 -08:00
Matthew Dean
43ab0b8722
Added error test for unparseable @plugin with better error messaging
2016-12-31 20:04:51 -08:00
Matthew Dean
49cbe520f6
Migrate JSCS and JSHint to ESLint and fix various ESLint styling errors
2016-12-31 20:03:46 -08:00
Matthew Dean
fda4565e8d
Replace "return {}" statement in plugins with explicit registerPlugin() function (more logical)
2016-12-31 11:53:53 -08:00
Matthew Dean
96c2ffbc0d
Tests for plugin in-browser
...
- Prevents XSS @plugin requests
2016-12-23 23:12:32 -08:00
Matthew Dean
4251946e83
Merge pull request #2955 from maxbrunsfeld/less-imports-of-files-named-css
...
Allow less imports of paths like 'dir/css'
2016-12-21 15:27:32 -08:00
Matthew Dean
bf34b951ea
Merge pull request #2975 from kirillrogovoy/refactor-less-error
...
Refactor LessError and lesscHelper.formatError
2016-12-21 15:24:12 -08:00
Matthew Dean
d0fbadba2e
Yes! Less.js tests now working for all browser platforms (except for local timeout error - to fix)
2016-11-20 18:07:19 -08:00
Kirill Rogovoy
068d654603
Refactor test/index.js removing code duplicates
2016-10-12 11:15:56 +03:00
Kirill Rogovoy
b23ffe1e4b
Move error formatting logic to LessError
2016-10-12 11:15:31 +03:00
Max Brunsfeld
26bb0d4405
Remove test for inferring css import based on path
2016-08-25 17:02:34 -07:00
Barnaby Colby
50efcdd7aa
Added code to ensure that String.prototype.endsWith is always defined, preventing a problem when testSourceMap is run on older versions of node.
2016-08-05 18:07:52 +01:00
Barnaby Colby
80c214d3c9
Added code to the source map test function to check the presence and correctness of the sourceMappingURL CSS appendage.
2016-08-04 21:20:15 +00:00
Matthew Dean
39150d513a
Simplified API on less object
...
e.g. "less.Ruleset()" instead of "new less.tree.Ruleset()"
Auto-casting of string values into nodes for AtRule, Declaration, Selector, Value
e.g. "less.Selector('&.a')" instead of "new tree.Selector(new tree.Element(new tree.Combinator('&'), '.a'))"
2016-07-19 01:30:34 -07:00
Matthew Dean
a38f8a1eb7
Added property accessors - performance issue solved by re-tooling value parsing
...
i.e. All values are anonymous strings until "queried"
- Unlike original PR, no change in existing test output for un-referenced properties
- unused variables would theoretically result in a tiny improvement in parsing time
2016-07-18 14:28:32 -07:00
Matthew Dean
54affb852b
Faster Jasmine tests, Sauce Labs settings update / trying to fix Sauce Labs issues for specific browsers
2016-07-16 20:45:12 -07:00
Matthew Dean
a3e43acb26
Pass function registry to plugin install()
...
- Create Anonymous nodes from non-null (but non-Node) function return values
- Allow empty Anonymous nodes to collapse on output
2016-07-15 16:05:20 -07:00
Matthew Dean
e309bf67a2
Added the concept of inherited index / fileInfo for nodes
2016-07-14 02:07:15 -07:00
Matthew Dean
ad57737ce0
All tests passing for @plugin
...
- Inline JavaScript disabled by default
- Deprecated "preprocessor" option removed (preprocessor plugins still valid)
2016-07-12 22:26:39 -07:00
Matthew Dean
270fd097c9
Plugin loader set up for lessc, node, and browser
2016-07-06 13:26:25 -07:00
Matthew Dean
bd14f14709
Rename @plugin to @use extensions
2016-06-24 20:36:00 -07:00
Matthew Dean
d07a9b6cc6
Fix for #2841 - Fix reversion for "color-like" keywords.
2016-04-22 16:31:56 -07:00
Stefan Weil
bf279b36be
Fix typos found by codespell
...
Signed-off-by: Stefan Weil <sw@weilnetz.de >
2016-04-01 12:01:40 +02:00
Matthew Dean
d666829260
Fix for Jasmine tests - don't log messages in production
2016-03-25 14:43:56 -07:00
Matthew Dean
bcc8ced8b0
Merge pull request #2754 from Synchro/master
...
Update contrast function and tests, fixes #2743
2016-03-15 09:52:40 -07:00
Matthew Dean
d061bdb2f1
Added tests for valid and invalid nodes returned by functions
2016-03-05 14:31:13 -07:00
Matthew Dean
6e97db84b3
Tests passing for creating directives
2016-03-04 14:10:53 -07:00
Matthew Dean
7a80224415
Merge branch 'master' into root-functions
2016-03-04 09:47:48 -07:00
meri
c12a7df917
This fixes #2798 - left part of inequality could not be enclosed in
...
parenthesis.
2016-02-17 16:20:17 +01:00
Max Mikhailov
01b11a7440
Fix comments after named color regression
2016-02-06 04:29:07 +03:00
Max Mikhailov
a58bb76e4c
polish "root func" error handling
2016-01-29 02:20:40 +03:00
Matthew Dean
87f8b2d43e
Add test demonstrating arguments and semi-colon separators
2016-01-26 17:10:15 -08:00
Matthew Dean
7f535a891d
Allow root functions defined via @plugin
2016-01-26 16:54:51 -08:00
Max Mikhailov
e3c13121df
allow unknown at-rules w/o {} block
2016-01-26 11:00:31 +03:00
meri
8cc6ea89b1
Logical operator and now has higher precence then logical operator or.
2016-01-17 19:37:51 +01:00
meri
73f93d4fce
removing forgotten commit
2016-01-15 14:37:41 +01:00
meri
9ed82e027d
Added tests for #2124
2016-01-15 13:42:42 +01:00
meri
d538509101
Merge https://github.com/less/less.js
2016-01-14 23:46:37 +01:00
meri
ce55a8e79c
Fixing #2124 - Parsing Error "Unrecognised input" for color operations
...
with color names.
2016-01-14 23:46:05 +01:00
Mária Jurčovičová
8c1fcb5115
Merge pull request #2763 from SomMeri/master
...
Added "or" keyword and allowed arbitrary logical expression in guards.
2016-01-14 14:27:36 +01:00
meri
77627050c7
Added "or" keyword and allowed arbitrary logical expression in guards.
2015-12-20 20:11:11 +01:00
Mária Jurčovičová
52281b68c1
Merge pull request #2759 from SomMeri/master
...
Fixed extend leaking through nested parent selector.
2015-12-16 14:27:34 +01:00
meri
dd09691b38
Fixed extend leaking through nested parent selector. #2586
2015-12-13 15:49:20 +01:00
Synchro
6dd409aba3
Update contrast function and tests
2015-12-07 13:50:35 +01:00
Mária Jurčovičová
51ae9c6c8e
Merge pull request #2738 from niom/feature/image-size-not-browser-supported
...
Fail when image-size functions are used in browser-less.
2015-12-07 13:06:05 +01:00
Marko Pukari
c731fe0dc1
Fail when image-size functions are used in browser-less.
2015-11-27 13:20:07 +02:00
meri
e753a7eba2
Created separate test case for #2162
2015-11-20 15:31:27 +01:00
meri
ead3e29f7b
Fixing import by reference
...
- refactored how import reference works
- refactored to-css-visitor (this is side product, it was getting
complicated)
- fixes issues #1851 , #1896 , #1878 , #2716 , #1968 , #2162 (same as #1896 )
2015-11-20 15:10:53 +01:00
Luke Page
1f624bdf38
Merge pull request #2644 from SomMeri/percentage-should-error-on-nan-2553
...
`percentage` function should throw error if result would be `NaN`
2015-09-17 07:49:45 +01:00