Matthew Dean
39ef69c6a8
Tests and parser fixes for namespace values in MQ and mixin args ( #3254 )
2018-07-02 19:44:44 -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
e84c880dcd
Added small breakpoints example with namespaced values ( #3250 )
...
* Added more CSS Grid tests
* Added media query example to tests
2018-07-01 11:18:47 -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
99162b630f
Release/v3.5.0 beta.3 ( #3246 )
2018-06-30 00:40:47 -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
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
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
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
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
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
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
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
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
26bb0d4405
Remove test for inferring css import based on path
2016-08-25 17:02: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
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
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
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
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
9ed82e027d
Added tests for #2124
2016-01-15 13:42:42 +01:00
meri
ce55a8e79c
Fixing #2124 - Parsing Error "Unrecognised input" for color operations
...
with color names.
2016-01-14 23:46:05 +01:00
meri
77627050c7
Added "or" keyword and allowed arbitrary logical expression in guards.
2015-12-20 20:11:11 +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
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
8dc3bfb024
Merge pull request #2646 from SomMeri/mixin-matching-with-default-parameters-2645
...
Parametric mixins: parameters don't match error
2015-09-17 07:48:58 +01:00
Michal Moravec
aca5da768f
Updated test data files
2015-09-09 22:19:08 +02:00
Luke Page
21858a50d5
Merge pull request #2642 from SomMeri/import-by-reference-inline-2620
...
Fixes import by reference inlines source's inline imports - 2620
2015-09-09 13:04:14 +01:00
Luke Page
8a135bd89b
Merge pull request #2643 from SomMeri/shorthand-color-interpolated-into-selector-1481
...
Keep shorthand color form the same way as named colors are kept.
2015-09-09 13:03:03 +01:00
Jacques Favreau
74ef1ebacd
Reference inline comments.
...
As described in https://github.com/less/less.js/issues/2675 in-value comments are not preserved in referenced rules.
This patch adds reference marking to nodes below rules and expressions if markReferenced is available.
2015-08-31 11:42:40 -07:00