Commit Graph

33 Commits

Author SHA1 Message Date
Luke Page
c1928b49d4 Merge branch 'normalized-urls' of https://github.com/rjgotten/less.js into 1.5.0-wip
Conflicts:
	test/css/static-urls/urls.css
	test/css/urls.css
2013-09-01 18:17:32 +01:00
rjgotten
e0561e3d95 Normalize URLs in generated CSS
Adds a normalizePath method to tree.evalEnv.prototype with which to normalize paths, i.e. , remove /../ or /./ segments stuck in the middle.

Unit tests have been updated to reflect these changes.
2013-08-07 10:44:12 +02:00
Luke Page
f14f86136c add tests for sourcemaps and get prototype working 2013-07-18 22:21:59 +01:00
Luke Page
1cc63d11b4 convert the rest of the nodes to use genCSS 2013-07-18 12:47:11 +01:00
Luke Page
4db7c883cf start refactoring toCSS so we will be able to collect sourcemap information at the same time 2013-07-11 22:08:38 +01: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
c56db94b7d Add modified (self altering) visitor pattern and class 2013-03-01 13:40:00 +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
681725f0d2 Once applying the rootpath, null it so it will not be applied again 2013-02-09 12:40:08 +00:00
Luke Page
9829f2409c When adding a path onto an unquoted url, escape characters that require it. Fixes #831 2012-12-28 21:04:28 +00:00
Salim Bensiali
e59a93b5fd Relative URLs in LESS files should be relative to the file that defines them.
It is up to the parser and compiler to rewrite them when those files are
imported by another LESS file.

- Modified and added test cases for import and import-once rules
- Fixed difference between client side and server side handling of relative urls
- Added a -rootpath option to lessc to specify another base path for the url
  rewriting. By default, rootpath=''
2012-12-27 20:40:16 +00:00
Luke Page
559231a4db Fix unquoted url's, remove special handling of data. Fixes #733 2012-09-09 10:30:55 +01:00
Luke Page
5b947fde7a Re-implement #598 - in browser mode add on path after evaluation. Fixes #598 and Fixes #294 2012-09-01 16:12:41 +01:00
Luke Page
f020aae779 Make less more protocol agnostic. Fixes #428 and Fixes #742 and Fixes #706 2012-09-01 15:37:15 +01:00
Luke Page
c68d33f94e tighten up two if statements to stop exception in browser mode. fixes #807 2012-09-01 14:44:22 +01:00
Colin Snover
2c75e4f332 Don't try to use variable values that do not exist on the browser. Fixes #190. 2012-08-18 17:35:22 +01:00
Alexis Sellier
9eb0423cb2 fix regression on url.js 2011-11-26 23:42:23 +01:00
Alexis Sellier
40601f8a61 fix regression on urls with relative paths Closes #464 #471 #465 2011-11-23 10:58:26 +01:00
Alexis Sellier
e35dc0efc0 merge 2011-11-12 13:49:41 +01:00
Alexis Sellier
c290c48b3f node 0.5.x compatibility 2011-11-12 13:13:36 +01:00
Adam Solove
5ad3a6732d Correctly handle data URIs, add test for quoted data URIs. 2011-10-21 12:49:25 -04:00
Alexis Sellier
37ee7eb8d5 don't add base-path to data-uris. closes #258 2011-05-11 09:30:44 -04:00
cloudhead
1a4b10976b (new) support for unquoted data URIs in url() 2010-11-20 02:17:35 -05:00
cloudhead
a8fbcb1917 attempt at url() relative path fix 2010-08-20 00:02:47 -04:00
cloudhead
e17314e653 stateless URL evaluation 2010-07-25 17:01:27 -04:00
cloudhead
334f224d7e squeeze extra slashes in url() 2010-07-25 16:44:27 -04:00
cloudhead
326e863bbc support relative url() paths in the browser 2010-07-25 16:42:19 -04:00
cloudhead
c68867c8e2 support variables in url() 2010-07-04 10:45:55 +02:00
cloudhead
a72966fa6a removed constructor names 2010-06-19 01:51:26 -04:00
cloudhead
7768d41050 better cross-environment handling. stub out require() in browser. 2010-06-15 18:44:59 -04:00
cloudhead
f5f0919349 Refactored some of the evaluation mechanisms
- Don't call `eval` from `toCSS`
- Every node responds to `eval`
2010-05-07 23:21:16 -04:00
cloudhead
fe732e843c refactor of module system. Things work properly now, and it's all much cleaner. 2010-03-13 03:34:48 -05:00
cloudhead
f0f425de33 move node/ -> tree/ 2010-03-05 19:19:14 -05:00