Commit Graph

2484 Commits

Author SHA1 Message Date
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
Mária Jurčovičová
78bf3f18a9 Merge pull request #2485 from seven-phases-max/allow-underscore-after-numbers
Allow underscore in a dimension unit
2015-12-07 13:00:03 +01:00
Mária Jurčovičová
baf45ea326 Merge pull request #2729 from SomMeri/master
Fixing import by reference
2015-12-07 12:57:59 +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
73e79b0b84 See if appveyor supports node.js 4 2015-09-29 20:22:06 +01:00
Luke Page
9d332a72ec Fix jshint warning 2015-09-25 13:00:00 +01:00
Luke Page
33fa72767e v2.5.3 v2.5.3 2015-09-25 12:50:16 +01:00
Luke Page
7af6e27430 Remove bower version as per #2607 2015-09-25 12:47:02 +01:00
Luke Page
d85b0e6a28 missing changelog for 2.5.2 2015-09-25 12:45:09 +01:00
Luke Page
c7a6e8d886 Fix import inline. Fixes #2703 2015-09-25 12:39:24 +01:00
Luke Page
f0c454bc68 v2.5.2 v2.5.2 2015-09-24 20:21:01 +01:00
Luke Page
dac026abd4 Merge pull request #2609 from mmelvin0/master
Skip missing optional imports
2015-09-24 20:14:54 +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
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
Luke Page
de67c5881a Merge pull request #2688 from mishal/crlf-fix
Converted CLRFs in error tests
2015-09-17 07:47:18 +01:00
Luke Page
67be0c4af5 Merge pull request #2687 from mishal/mime-detection
Updated test data files
2015-09-17 07:47:00 +01:00
Michal Moravec
7bafb62057 Converted CLRFs in error tests 2015-09-09 22:32:11 +02: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
Luke Page
3ef676ad41 Merge pull request #2677 from betaorbust/master
Reference inline comments.
2015-09-09 12:58:46 +01:00
Luke Page
430cf3a45e Merge pull request #2685 from demohi/patch-1
Update travis Node.js version & remove io.js
2015-09-09 12:54:57 +01:00
mdemo
7ea9ed2f70 Update travis Node.js version & remove io.js 2015-09-09 10:01:06 +08: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
jurcovicovam
19dc9e78b9 Added getIsReferenced into anonymous node. The visibility of anonymous
node type now works the same way as visibility of ruleset or directive.
2015-07-25 16:03:06 +02:00
jurcovicovam
e7ce82bec6 Fixed mixins definition matching problem when mixin definition contains
parameters with default values. #2645
2015-07-22 17:02:36 +02:00
jurcovicovam
e8efa6e033 Percentage should work the same way as other math functions (round, floor,
etc) and throw error on NaN. #2553
2015-07-20 14:31:53 +02:00
Luke Page
ff5e5a040b Merge pull request #2637 from SomMeri/empty-source-map-to-empty-file-2430
Undefined source map should result in an empty map file.
2015-07-19 21:16:26 +01:00
jurcovicovam
30fe1cb9e2 Keep shorthand color form the same way as named colors are kept. #2481 2015-07-19 14:54:41 +02:00
jurcovicovam
34e3ea61ce Import inline located inside file imported by reference should not be
present in output. Close #2620
2015-07-19 14:07:21 +02:00
jurcovicovam
ce4a7bc0e9 Undefined source map should result in an empty map file. #2430 2015-07-17 09:57:55 +02:00
seven-phases-max
3178103b7f merge updated expand-operator with master
plus reworked tests
2015-06-25 23:53:32 +04:00
seven-phases-max
8204eca8a0 Merge branch 'philschatz_patch-1' into expand-operator 2015-06-25 17:53:55 +04:00
Michael Melvin
d4b9004647 Skip missing optional imports 2015-06-12 16:50:37 -07:00
Luke Page
8114a32181 Merge pull request #2607 from kkirsche/patch-1
Remove moot `version` property from bower.json
2015-06-11 06:29:31 +01:00
Kevin Kirsche
b1c5641acb Remove moot version property from bower.json
Per bower/bower.json-spec@a325da3
2015-06-10 18:27:07 -04:00
Luke Page
59c012c16a 2.5.1 release v2.5.1 2015-05-21 12:26:46 +01:00
Luke Page
0671a120b8 Update CHANGELOG.md 2015-05-21 12:21:08 +01:00
Luke Page
69a0e0d6cc Merge pull request #2591 from pdehaan/patch-1
Update license attribute
2015-05-21 12:17:28 +01:00
Peter deHaan
bdcec8bff4 Update license attribute
specifying the type and URL is deprecated:

https://docs.npmjs.com/files/package.json#license
http://npm1k.org/
2015-05-20 23:43:45 -07:00
Luke Page
fbbd313bcf Merge pull request #2575 from chipx86/fix-sync-loading
Fix synchronously loading/applying stylesheets on page load.
2015-04-29 08:20:33 +01:00
Christian Hammond
f66757554f Fix synchronously loading/applying stylesheets on page load.
Starting in 2.0, stylesheet loading became asynchronous, through the
usage of promises for both calculating the list of stylesheets and the
initial call to less.refresh(). This resulted in visual issues while
loading on some browsers (noticed in Firefox and Safari), along with
breakages of any custom JavaScript that depended on the computed style
of elements on the page, due to race conditions.

This change preserves the promise for initial page loading, in order to
retain support for less.pageLoadFinished, but immediately executes the
stylesheet scan (through a new less.registerStylesheetsImmediately
function) and the less.refresh() call. That resulting behavior matches
versions of less prior to 2.0.

This unveiled a regression in registering functions, both in the browser
and in unit tests, that was not previously noticed due to the
asynchronous load. Registered functions would have a 'less' variable set
to the less options, and not less itself, when not going through the
asynchronous loading mode. This meant that both unit tests and
real-world function registration would break when the sync page loading
was fixed. Overriding window.less to point to the actual less module and
not less.options during bootstrap fixes this.

This fixes #2317.
2015-04-28 02:08:39 -07:00
Luke Page
5ad6fb3fc6 Merge pull request #2568 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2015-04-27 21:34:54 +01:00
Luke Page
48ad5a37f1 Merge pull request #2559 from seven-phases-max/master
Fix for #2558
2015-04-27 13:43:13 +01:00
Luke Page
2c5aa398c2 Merge pull request #2574 from seven-phases-max/fix-ruleset-find
Fix `Ruleset.prototype.find` failing for certain frames
2015-04-27 13:42:06 +01:00
seven-phases-max
47ce670c38 fix Ruleset.prototype.find failing in certain (programmatic usage) cases 2015-04-26 19:55:00 +04:00
seven-phases-max
28006cf721 fix Ruleset.prototype.find failing in certain (programmatic usage) cases 2015-04-26 19:50:47 +04:00