Luke Page
9f0c58cfa4
make browser test file paths host relative
2013-02-26 19:14:48 +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
Daniel Stockman
7116b3b1c5
Change tan function test value.
...
Apparently there is some disagreement on the tangent of 40 between browser and node. 42 is the answer.
2013-02-26 18:55:34 +00:00
Luke Page
241c830e10
Support reading other arguments as default parameters. Fixes #43
2013-02-17 22:25:38 +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
21cc34b608
Fix #791 - avoid engineering syntax in dimensions
2013-02-16 20:45:34 +00:00
Luke Page
d01d2e9bfb
do not pollute the parent scope after mixin call if variable is defined
2013-02-16 15:15:38 +00:00
Luke Page
d70769bfb7
variables in media queries in import statements
2013-02-16 14:44:58 +00:00
Luke Page
178696d141
Allow any casing for functions. Fixes #1168
2013-02-15 22:15:08 +00:00
Luke Page
914eb404d7
Fix import errors in browser mode. Fixes #1117 and fixes #1118
2013-02-10 12:47:25 +00:00
Luke Page
88f3f02213
Correct some error inconsistancies. Add browser testing of errors - import missing error fails because of #1117
2013-02-05 22:38:43 +00:00
Luke Page
d9d959fd21
Ensure error thrown uses 'type' not 'name'
2013-02-03 11:55:34 +00:00
Luke Page
aecab5e7dd
add error tests for value lists in brackets
2013-02-03 00:06:52 +00:00
Luke Page
c2880a9baa
double brackets does not leave brackets behind, to align with the most common scenarios
2013-02-02 23:57:31 +00:00
Luke Page
6cd6fb2585
Do not allow space seperated values inside parens. Fixes #952
2013-02-02 23:53:38 +00:00
Luke Page
28172d50f7
support windows line endings in browser tests
2013-02-02 18:25:07 +00:00
Luke Page
26b6bc470d
browser tests for legacy strictMaths===false and strictUnits===false
2013-02-02 18:24:37 +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
a490bc12bf
Fix comments test
2013-02-02 16:53:03 +00:00
Luke Page
e21bf1d7a1
Legacy maths mode supports old special cases for font property and media queries
2013-02-02 15:49:43 +00:00
Luke Page
bbef83e171
Add tests for operations in media queries
2013-02-02 15:35:25 +00:00
Luke Page
2ffdefa248
Preserve whitespace in operations
2013-02-02 15:30:19 +00:00
Luke Page
c27922890d
Add tests for strict unit errors
2013-01-31 07:06:59 +00:00
Luke Page
3ef22f16f9
Add strictUnits option, add tests for legacy behaviour
2013-01-30 20:31:26 +00:00
Luke Page
531195c92d
take maths further
2013-01-24 22:27:17 +00:00
Luke Page
3b5ecf5421
Fix merge issues and a code review comment. revert unit change that outputs px*px as it is not valid css
2013-01-23 21:43:39 +00:00
Dustin Cass
abaf4c6b68
Arithmetic within mixin calls must be in nested parentheses; Added tests for mixins
2013-01-23 20:41:11 +00:00
Dustin Cass
241b9d23a4
Remove spaces around slashes in final CSS output and update tests to reflect that; Added a couple shorthand tests
2013-01-23 20:37:49 +00:00
Dustin Cass
bf1823f109
Removed Shorthand and Ratio parsers; Fixed some issues with paren depth state; Adjusted tests to pass on new output
2013-01-23 20:37:48 +00:00
Dustin Cass
b371fc90a0
Updating parens and operations tests
2013-01-23 20:32:18 +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
Synchro
4d5c404dd9
HSV support for #1143
2013-01-23 08:43:12 +01:00
Synchro
3b293be8e2
Fix contrast percentage handling, fixes #1144
2013-01-23 00:32:41 +01:00
ScottRippey
80d9f387c0
Reversed the order of extract's parameters, to match the precedence set
...
by other functions. Fixes #1119
2013-01-12 12:55:09 +00:00
Luke Page
1abb5dd460
Fix #1122
2013-01-12 09:46:20 +00:00
Gustavo Henke
11aba0ea45
pow() function: more tests
2013-01-10 22:16:49 +00:00
Gustavo Henke
0ac95336f7
Added function pow() with tests
2013-01-10 22:16:49 +00:00
ScottRippey
454a761e9c
Added a new function - extract for extracting padding values from a variable
2013-01-10 22:13:33 +00:00
Luke Page
d5bb30b4db
Support angle unit conversion. add trig functions. don't compress angle unit. add mod and abs. Fixes #858 and fixes #240
2013-01-06 13:01:10 +00:00
Luke Page
703aa928fc
Add tests for compression. remove fullhex function - make colors not compress when used in strings.
2013-01-06 10:33:31 +00:00
Luke Page
8745ab442a
test production browser mode does not output log messages
2013-01-05 15:29:48 +00:00
Luke Page
4c2d01a316
make env available to functions. Fix the path for the data-uri function in the browser. Fixes #997
2013-01-05 15:29:45 +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
Jay Adkisson
2394c0065e
guess the mimetype, and properly encode non-base64 uris
2013-01-05 15:29:44 +00:00
Jay Adkisson
24e41081ef
add a data-uri function
...
as described in a comment on #775
2013-01-05 15:29:42 +00:00
Salehen Rahman
d56e0a476d
Added the square root function.
2013-01-05 15:29:41 +00:00
Luke Page
697515b56c
Add additional test for nested selectors. Rebuild dist.
2013-01-05 15:29:39 +00:00