Luke Page
ba3d24a352
Support urls begining // which are unquoted. Fixes #2238
2014-10-21 13:01:01 +01:00
jurcovicovam
0f8bd724f8
Fragment handling in data-uri function 1959
...
The change removes #fragment from filePath before readig the file and adds
it back to the end of the generated uri.
2014-08-03 13:20:02 +02:00
jurcovicovam
c6cf6a8a6a
Moved @font-face property merge test into urls.less and re-enabled
...
merge.less in jasmine tests.
2014-07-27 14:12:57 +02: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
Luke Page
818109beca
Fix issue with urls in mixins
2013-12-17 23:42:08 +00:00
Luke Page
9a6888bf0d
Merge branch 'unquoted-relative-url-in-mixin' of https://github.com/bdukes/less.js
2013-12-17 23:26:34 +00:00
Luke Page
ebc6f5e1df
add passing test for urls containing escaped quotes
2013-09-14 14:04:19 +01:00
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
037cdb5916
fix tests
2013-07-15 22:03:52 +01:00
Brian Dukes
05be360993
Add failing test for imported mixin with wrong path
...
When relative URLs are on, and there's an image referenced via url(...),
if the URL is unquoted, the generated CSS duplicates the base path
2013-07-11 15:04:52 -05:00
Luke Page
cfe9ae7798
Add svg-gradient function. Fixes #1383
2013-07-05 06:51:58 +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
Daniel Stockman
feed74f3bd
Fallback url() value for data-uri function should be quoted.
2013-02-26 18:55:39 +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
41a8f6724a
Fix browser tests - url tests need to live in urls.less
2013-02-02 18:08:03 +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
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
6554117643
Add initial browser test suite using phantomjs for headless testing and jasmine
2012-12-16 08:45:51 +00:00