Matthew Dean
bad9be8a11
Fixes #3112
...
- also fixes browser test broken with lowercase API change
2017-10-09 22:11:19 -07:00
Matthew Dean
55380d49e9
All tests passing
2017-10-08 18:31:41 -07: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
Stefan Weil
bf279b36be
Fix typos found by codespell
...
Signed-off-by: Stefan Weil <sw@weilnetz.de >
2016-04-01 12:01:40 +02:00
Marko Pukari
c731fe0dc1
Fail when image-size functions are used in browser-less.
2015-11-27 13:20:07 +02:00
Bass Jobsen
1376b77582
all tests run both in browser and CLI now
2015-03-11 10:24:37 +01:00
Bass Jobsen
410a86a594
run postprocess plugin test CLI too
2015-03-04 09:11:17 +01:00
Bass Jobsen
296014a632
add more plugin tests
2015-03-03 22:52:54 +01:00
Bass Jobsen
553e75f9dc
add browser postProcessor Plugin test
2015-03-01 22:06:31 +01:00
Bass Jobsen
121bdd8365
allow a list of colors as argument for the svg-gradient function
2015-02-11 20:35:28 +01:00
Luke Page
2114a3fe7a
fragment urls referencing just a fragment are assumed absolute - referencing the current page. Fixes #2320
2015-02-02 20:08:48 +00:00
Matthew Smith
19b606b439
Improve url check to be more robust, fix tests
...
I figured out that the test would still fail if I call the import in the
urls.less file. That way I don't need to figure out all the setup
required to test this bug.
- #2360
2014-12-31 13:09:02 -07:00
Luke Page
ba3d24a352
Support urls begining // which are unquoted. Fixes #2238
2014-10-21 13:01:01 +01:00
Cloud Chen
0a7954355a
Implement postProcessor callback feature for less.ls browser environment #1835
...
Add `jasmine:postProcessor` task and corresponding spec as well
2014-02-03 00:07:38 +08:00
Mohammad Samman
e3a78458ad
FIXES ISSUE #1453 : let ModifyVar change numerical variables
2013-12-06 00:47:14 -08:00
Christian Hammond
daec7dff1c
Support specifying custom variables when calling lessc and less.js.
...
Both lessc and less.js can now be provided with global variables that
all .less files will have immediate access to. This can be used to
provide, for example, a base path for an @import, signed URLs offering
temporary access to an image on S3, or anything else.
lessc has two new parameters, --global-var and --modify-var. Both take
a value of the form "varname=value". --global-var declares variables
immediately before the content of the .less files, and --modify-var
declares them after.
--global-var is used when rules, imports, or other variables will depend
on the provided variable.
--modify-var is used to override a variable declared within the .less
file.
less.js's equivalent for global variables is less.globalVars. This can
be set before loading less.js. There is no new requivalent to
--modify-var, as less.modifyVars can be used for that purpose.
2013-11-14 02:58:34 -08:00
Luke Page
c139e691ad
Merge branch '1.5.0-wip' of https://github.com/upstage/less.js
...
Conflicts:
.gitignore
.jshintrc
CHANGELOG.md
Makefile
build/browser-header.js
lib/less/browser.js
lib/less/functions.js
lib/less/rhino.js
lib/less/tree/dimension.js
lib/less/tree/value.js
package.json
test/browser-test-prepare.js
test/browser/common.js
test/browser/css/relative-urls/urls.css
test/browser/css/urls.css
test/browser/template.htm
test/css/compression/compression.css
test/css/static-urls/urls.css
test/css/urls.css
test/less-test.js
2013-09-04 23:12:34 +01:00
Luke Page
2ed6f34afb
Use the log method for logging errors and turn the number into an
...
enumeration.
2013-08-22 19:11:23 +01:00
Luke Page
03a7183637
add tests and fix log to console feature
2013-08-21 20:35:32 +01:00
meri
296dac360c
Added rootpath-relative tests.
2013-08-07 11:09:48 +02:00
meri
1f4bab6453
Added rootpath tests.
2013-08-07 09:41:59 +02:00
meri
58f35b4cd1
Added relative urls tests.
2013-08-07 09:17:19 +02:00
meri
e41d32184e
Converted browser/browser tests into jasmine.
2013-08-06 16:45:59 +02:00
Luke Page
cfe9ae7798
Add svg-gradient function. Fixes #1383
2013-07-05 06:51:58 +01:00
Luke Page
b726b0d96c
Fix modifyVars to use a per file cache so less is re-evaluated properly. Also add tests and \n in case of comment on the last line
2013-07-05 06:49:09 +01:00
agatronic
46e1613ba7
Handle ./ paths in the browser when relative correctly. Fixes #1238
2013-04-30 15:17:05 +01: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
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
Luke Page
aa9c47b5da
move data-uri tests to url.less so they are not run in the browser. add browser tests. make function return url() in the browser
2013-01-05 15:29:45 +00:00
Luke Page
5b3851720a
browser support for rootpath and relative urls, with test
2012-12-28 20:32:26 +00:00
Luke Page
addf87a75f
Fix browser tests by moving url re-writing tests to urls.less. Also fix browser rootpath.
2012-12-28 12:38:49 +00:00
Luke Page
c35b6d733e
Add browser specific url tests
2012-12-16 08:45:52 +00:00