Michal Moravec
aca5da768f
Updated test data files
2015-09-09 22:19:08 +02:00
jurcovicovam
30fe1cb9e2
Keep shorthand color form the same way as named colors are kept. #2481
2015-07-19 14:54:41 +02: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
Luke Page
8ba6080171
also test for using string functions with data-uri as that used to fail
2015-01-26 20:20:13 +00:00
Luke Page
b09f30e079
support variables passed to data-uri
2015-01-26 20:17:27 +00:00
Luke Page
3bf458dc46
Change test to not require rn
2015-01-11 11:55:55 +00:00
Luke Page
bac6f22a84
Add image-size functions. Fixes #1378
2015-01-04 11:25:56 +00:00
Luke Page
11fd6b17dc
Default svgs to not be base64 encoded. encodeUri the svg-gradient function (and never base64 encode it). Fixes #2250
2015-01-03 14:59:51 +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
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