113 Commits

Author SHA1 Message Date
Luke Page
8580ff8c10 Merge pull request #1814 from seven-phases-max/numeric-precision
Rounding of output numbers.
2014-01-21 04:27:59 -08:00
seven-phases-max
52ba472bb7 Added rounding of output numbers (hardcoded to max. 8 digits in this commit). 2014-01-18 09:58:14 +04:00
meri
85197ee577 Merge branch 'master' of https://github.com/less/less.js into rhino
Conflicts:
	.gitattributes
	README.md
	test/index.js
2014-01-14 22:48:46 +01:00
Luke Page
6dfb00751c Fix for in without hasOwnProperty 2014-01-10 20:09:36 +00:00
meri
d438b9c52d Close #1777
Data-uri function used single quote ' around generated url, but did not
encoded it in generated string. Switched it to " which is encoded.
2014-01-05 12:27:05 +01:00
Matthew Dean
e7f9b96e95 Fix for use of reserved word
Fixes issue #1772
2014-01-02 15:07:36 -08:00
Luke Page
4dd5a4b8e8 Merge pull request #1737 from seven-phases-max/clamped-rgba-output
Clamped rgba format color output
2014-01-01 05:05:59 -08:00
seven-phases-max
bdfff94920 * functions.js: (minor) reworking to clean-up initialization of "externally" defined functions (math, blending, default).
* `default` function "front-end" reworked for a bit higher-level control from its "back-end" code (e.g. tree.mixin.eval).
2013-12-22 18:27:51 +04:00
seven-phases-max
302143255d clamped rgba format color output. 2013-12-22 10:02:49 +04:00
Luke Page
b2b1451902 Merge branch 'mutually-exclusive-guards' of https://github.com/seven-phases-max/less.js 2013-12-19 06:33:38 +00:00
Synchro
21e1e91b4b Remove alpha from contrast calc, see #1724 2013-12-17 09:17:00 +01:00
seven-phases-max
f168d187e1 mixin guard default: default moved to functions.js + other minor improvements 2013-12-17 06:32:36 +04:00
Luke Page
3818727bf7 jshint: boss 2013-12-16 23:23:34 +00:00
meri
cef6fbd285 Merge branch 'rhino' of https://github.com/obecker/less.js into rhino
Conflicts:
	build/build.yml
2013-12-11 11:05:48 +01:00
seven-phases-max
1f57576d90 color-blending-with-transparency: changed func dispatch method from closure to bind() 2013-12-07 18:51:07 +04:00
seven-phases-max
f835b1701c color-blending-with-transparency: removed debug log statement mistakenly left out 2013-12-03 04:58:07 +04:00
seven-phases-max
28e5295dae color-blending-with-transparency: fixed negative result alpha handling (though allowing out-of-range alpha inputs is subject for further discussions/decision) 2013-12-02 01:54:59 +04:00
seven-phases-max
61ff14b63c color-blending-with-transparency: initial implementation 2013-11-30 00:15:13 +04:00
Synchro
167e802875 Tests and fix for #1689 2013-11-29 01:24:25 +01:00
Oliver Becker
eff7341d98 added base 64 encoding for rhino, fixes urls.less test case 2013-11-15 16:15:30 +01:00
Oliver Becker
b02d35891e refactored rhino require() for provided (node) modules 2013-11-12 21:58:29 +01:00
Oliver Becker
4210cfd2d1 started data-uri implementation, added basic console formatting support 2013-11-11 22:15:42 +01:00
Oliver Becker
0b4ecbaea0 merged upstream/master 2013-10-27 13:02:09 +01:00
Oliver Becker
716101256e added gradle based test suite, reviewed rhino integration 2013-10-27 12:47:59 +01:00
seven-phases-max
fd1182bd69 Added length function (#1542). Added scalar value handling for extract and length (#1576). 2013-10-03 10:04:23 +04:00
Luke Page
15e8897802 if ie compatability is off, do not warn at all about file sizes over IE's
limit. Fixes #1414
2013-09-18 18:07:34 +01:00
Luke Page
0465398ab6 throw an error when the unit function is passed bad input. Fixes #1426 2013-09-18 05:54:38 +01:00
Luke Page
793bb89a2a Test for invalid colors. Fixes #1458 2013-09-16 19:50:05 +01:00
Luke Page
9447421258 switch on latedef option and fix issues. Fixes #1521 2013-09-01 12:34:20 +01:00
Luke Page
e68f47fec5 Merge branch 'sourcemaps-wip' into 1.5.0-wip
Conflicts:
	bin/lessc
	lib/less/env.js
	lib/less/tree/color.js
	package.json
2013-07-31 22:21:44 +01:00
Luke Page
41f53f2fc2 correct radial gradient format to w3c spec 2013-07-30 12:07:15 +01:00
Luke Page
c68352dc17 Fix issue with svg-gradient breaking the opacity 2013-07-30 12:07:03 +01:00
Daniel Stockman
8eeaf87a79 JSHint lib/* and test runners. 2013-07-08 19:09:03 -07:00
Luke Page
cfe9ae7798 Add svg-gradient function. Fixes #1383 2013-07-05 06:51:58 +01:00
Kevin Gillette
3d46350a40 Cleanup. Now responds to env.compress 2013-07-05 06:51:57 +01:00
Kevin Gillette
54a5f74c09 min/max now always reduce compatible terms. 2013-07-05 06:51:56 +01:00
Kevin Gillette
6df4e48976 Added min and max builtins. 2013-07-05 06:51:55 +01:00
Luke Page
de27a6fd88 Add bypass for saturate(5%) filter function. Helps issue #1299 2013-07-05 06:51:05 +01:00
agatronic
572b45a94b Add isunit function. fixes #1298 2013-04-29 16:28:20 +01:00
Luke Page
ac3a92dd30 add clamping to hsl and hsla functions 2013-03-08 08:22:57 +00:00
Luke Page
5d54af2039 import interpolation finished. refactored the import phase to occur only within the import visitor - so that the import eval env can be passed between imports. 2013-03-01 13:40:54 +00:00
Luke Page
28b8967205 Use original node so that original seperator is used instead of the native one. Fixes unit tests on windows. 2013-02-26 19:02:38 +00:00
Daniel Stockman
feed74f3bd Fallback url() value for data-uri function should be quoted. 2013-02-26 18:55:39 +00:00
Daniel Stockman
51387047da Wrap data-uri warnings in an env.silent check, silencing test set. 2013-02-26 18:55:38 +00:00
Daniel Stockman
e4fe935ea1 Prevent data-uri function from embedding files larger than 32KB.
Although IE8 does support data-uris, it only does so with a limit of 32KB. It's a silly limitation, but a source of potential bugs. When the limit is exceeded, the data-uri() function will simply return a normal url() value with a relative path to the asset.

One may pass --no-ie-compat to lessc to avoid this safeguard.
2013-02-26 18:55:35 +00:00
Luke Page
e7cbc4c190 Fix data-uri relative url to be relative in the same way as normal url's 2013-02-17 12:44:31 +00:00
Luke Page
f68337e450 change data-uri to look at the file relative to the root or current less file. Fixes #1186 2013-02-16 22:11:01 +00:00
Daniel Stockman
5325a2e4b4 Provide fallback 'mime' object that covers 80% case of data-uri usage. 2013-01-23 19:23:51 +00:00
Marcus Bointon
26d35c98fe Merge pull request #1148 from Synchro/luma
Better implementation of luma
2013-01-23 01:30:26 -08:00
Synchro
8f1bc4badf Better implementation of luma 2013-01-23 09:30:15 +01:00