Commit Graph

903 Commits

Author SHA1 Message Date
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
Max Mikhailov
597e7602c4 Merge pull request #3172 from jacobwarduk/type-checking-length-units
Type checking length units
2018-05-01 01:55:25 +03:00
Jacob Ward
973b6561a9 Remove spurious git diffs 2018-04-30 17:34:11 +01: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
Matthew Dean
ddde3c1100 Fixes #3181 2018-04-18 14:54:17 -07: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
Rob Huzzey
044aa24c4f Added CSS to test the LESS 2017-10-20 10:40:59 +03:00
Rob Huzzey
7be05d7a4d Added test for import module fix 2017-10-18 11:37:40 +03:00
Matthew Dean
bad9be8a11 Fixes #3112
- also fixes browser test broken with lowercase API change
2017-10-09 22:11:19 -07:00
Matthew Dean
af5656944a Update tests for lowercase API 2017-10-08 18:46:01 -07:00
Matthew Dean
55380d49e9 All tests passing 2017-10-08 18:31:41 -07:00
Matthew Dean
4f6818db37 Merge branch '3.x' into dev/3.x-work 2017-10-08 15:30:08 -07:00
Matthew Dean
26674fc867 FIXES syncImport for less-node 2017-10-08 15:21:13 -07:00
Matthew Dean
9fd1ef5759 Pushing WIP of changes to file manager to track changes 2017-06-08 12:50:40 -07: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
006ce2651d special functions: add boolean and if, clean up alpha 2017-06-07 16:31:35 +03:00
Max Mikhailov
10db21c3b5 optional ; after VariableCall at the end of {} block
i.e. allow `div {@var()}` to become consistent with the rest of CSS/Less syntax
2017-06-01 13:06:58 +03:00
Max Mikhailov
6a683eb62d eslint spaced-comment and corresponding changes 2017-06-01 02:27:55 +03:00
Max Mikhailov
458b3975ea update mergeRules (no separate !important rules + cleanup) 2017-05-31 23:25:26 +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
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