605 Commits

Author SHA1 Message Date
Matthew Dean
be048e77e1 Merge pull request #3257 from matthew-dean/bugfix-3182
Fixes #3182
2018-07-05 23:07:42 -07:00
Matthew Dean
6c2c0fd9f4 Allow [] to resolve to last declaration's value (#3256) 2018-07-03 23:03:49 -07:00
Matthew Dean
6fa7980cfe Fixes #3182 2018-07-03 19:38:31 -07:00
Matthew Dean
29468bffcd Bugfix - namespace values (#3251)
* Added more CSS Grid tests
* Added media query example to tests
* Fixed bug where namespace values didn't work in guards and operations
* Fix failing setOptions test
* Update phantomJS, demo more permissive DR tests
* v3.5.0-beta.5
2018-07-01 19:43:24 -07:00
Matthew Dean
6237e13b14 [Feature] Namespaced values (#3242)
* calc() fix - fixes #974
* Parses and retrieves a namespaced value
* Adds a bunch of new tests for aliasing and namespacing
* Added more CSS Grid tests
* Added tests for passing mixins into mixins, since it's just another value
* Release v3.5.0-beta.4
2018-06-30 09:32:02 -07:00
Matthew Dean
f1a3a250c4 Fixes #3235 (#3237) 2018-06-29 18:18:11 -07:00
Matthew Dean
566f42862e Fixes #3205, partial 3.0 math regression #1880 (#3228)
* Fixes Mixin call args not being visited
* Add ability to use ES6 in tests
* Fixes #3205 and partial 3.0 math regression #1880
2018-06-26 23:26:01 -07:00
Matthew Dean
b8140d4baa Fixes #1421 - re-parses variable-interpolated elements to selectors (no.2) (#3227)
* Fix element to selector list conversion, passing all tests!
* Add passing test from #3098
* Added passing test example from #1817
* Allow lists to be re-evaluated as selectors (Fixes #1694)
2018-06-25 09:12:34 -07:00
Matthew Dean
7a12d2f675 Fixes #3191 (#3223) 2018-06-24 20:40:29 -07:00
Matthew Dean
42fd7dca20 Release v3.5.0 beta (#3230)
* Lint cleanup of quotes
* v3.5.0-beta
2018-06-24 20:14:33 -07:00
Matthew Dean
a75f7d9664 Fixes #3147 #2715 (#3213)
* Adds permissive parsing for at-rules and custom properties
* Added error tests for permissive parsing
* Change custom property value to quoted-like value
* Allow interpolation in unknown at-rules
* Allows variables to fallback to permissive parsing
* Allow escaping of blocks
2018-06-21 23:44:38 -07:00
Matthew Dean
e1255ec2b7 Merge pull request #3220 from less/revert-3217-bugfix-1241
Revert "Fixes #1421 - re-parses variable-interpolated elements to selectors"
2018-06-17 16:21:50 -07:00
Matthew Dean
85a716c1cf Revert "Fixes #1421 - re-parses variable-interpolated elements to selectors (#3217)"
This reverts commit 23569c98e2.
2018-06-17 16:20:48 -07:00
Matthew Dean
468b532885 Fixes #3195 (#3215) 2018-06-16 11:59:18 -07:00
Matthew Dean
23569c98e2 Fixes #1421 - re-parses variable-interpolated elements to selectors (#3217)
* Adds passing test from #3098
* Added passing test example from #1817
* Allow lists to be re-evaluated as selectors (Fixes #1694)
2018-06-16 11:58:09 -07:00
Jacob Ward
01f34ed36c Add all valid CSS length units 2018-04-30 17:31:28 +01:00
Jacob Ward
d0e53dd395 Annilhilated the festival 2018-04-30 15:07:15 +01:00
Jacob Ward
6ff7d3c6bb Fix type checking for valid CSS length units 2018-02-19 23:20:28 +00:00
Matthew Dean
a48c24c4dd calc() fix - fixes #974 (partially #1880) 2018-02-10 16:57:53 -08:00
Matthew Dean
4508495adb Remove legacy upgrade
- Add simple grid syntax support
2018-02-09 19:40:39 -08:00
Max Mikhailov
faafd33b56 do not ignore strict-math:off in media-features
!breaking change, fixes #1480
2017-06-08 10:00:26 +03:00
Max Mikhailov
3f353a8bfd do not evaluate backticks in strings as inline-js 2017-06-08 09:44:56 +03:00
Max Mikhailov
006ce2651d special functions: add boolean and if, clean up alpha 2017-06-07 16:31:35 +03:00
Max Mikhailov
632f96b55d rename RulesetCall to VariableCall 2017-06-01 12:30:02 +03:00
Max Mikhailov
6a683eb62d eslint spaced-comment and corresponding changes 2017-06-01 02:27:55 +03:00
Max Mikhailov
312f741e42 minor Selector code clean-up 2017-05-28 15:53:57 +03:00
Matthew Dean
b782411278 Sync default options across all Less.js environments
- More tests for plugins
2017-01-10 17:44:50 -08:00
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
49cbe520f6 Migrate JSCS and JSHint to ESLint and fix various ESLint styling errors 2016-12-31 20:03:46 -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
Max Brunsfeld
77fde7eb78 Allow less imports of paths like 'dir/css' 2016-08-23 14:03:26 -07:00
Matthew Dean
abb5375acb Fix JSLint and JSCS errors 2016-07-19 01:38:54 -07: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
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
9b0c8abb54 Reduced lookups and type checking on object properties 2016-07-15 16:03:02 -07:00
Matthew Dean
1136a9c050 3.0.0-pre.2 2016-07-14 12:29:11 -07:00
Matthew Dean
e309bf67a2 Added the concept of inherited index / fileInfo for nodes 2016-07-14 02:07:15 -07:00
Matthew Dean
16c80efa61 Fix directive / rule shims 2016-07-13 01:38:30 -07:00
Matthew Dean
1ecb327a67 Merge branch 'feature/@plugin' into 3.x
* feature/@plugin:
  All tests passing for @plugin - Inline JavaScript disabled by default - Deprecated "preprocessor" option removed (preprocessor plugins still valid)
  Plugin loader set up for lessc, node, and browser
2016-07-12 22:35:16 -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
52e9b5e4fe Rename Directive -> AtRule & Rule -> Declaration
- Added tree shim for old node types and plugin visitor shim to upgrade node visitors to new node types
2016-07-01 20:53:01 -07:00
Matthew Dean
c73f50e2c7 Added plugin function "setContext()". Allows the context from where the plugin is declared to be passed into the plugin after it is evaluated. (Useful for creating function calls / vars dynamically.) 2016-07-01 15:08:48 -07:00
Matthew Dean
777d95f11b Add plugin cache to plugin manager
- Add visitor iterator so that visitors can be added while visiting (such as plugins in nested scope)
2016-07-01 14:44:54 -07:00
Matthew Dean
27492a71ef Rename extensions back to plugins 2016-07-01 14:43:34 -07:00
Matthew Dean
bd14f14709 Rename @plugin to @use extensions 2016-06-24 20:36:00 -07:00
Matthew Dean
7a5e073e90 Small bug fix: index is passed to Comment node but never assigned 2016-05-10 19:58:34 -07:00
Matthew Dean
d061bdb2f1 Added tests for valid and invalid nodes returned by functions 2016-03-05 14:31:13 -07:00