Tom MacWright
96d19204cf
Simplifying nested example, removing compress variables and frames code.
2011-01-17 13:52:13 -05:00
Tom MacWright
8e615e549f
Updating testing, adding docs
2011-01-17 13:19:14 -05:00
Tom MacWright
06a0e56e90
Rewriting, updating test framework
2011-01-17 12:08:16 -05:00
Tom MacWright
008abe40d7
Adding support for multiple filtered selectors
2011-01-14 18:42:58 -05:00
Tom MacWright
e035a8986e
Adding default tilemill stylesheet to testing dir
2011-01-13 14:25:12 -05:00
Tom MacWright
7c0d065f9c
Removing old test files
2011-01-13 14:14:48 -05:00
Tom MacWright
97a4e8ae85
Removing old less and css files.
2011-01-13 14:11:06 -05:00
Tom MacWright
e5ba37d71e
Full rename to mess
2011-01-05 14:23:28 -05:00
Tom MacWright
6cf86b1a64
Updating world samples
2011-01-05 13:11:36 -05:00
Tom MacWright
41904a668a
Support embedded styles. Fixes #10 . Needs testing for non-embedded styles
2011-01-05 12:46:31 -05:00
Tom MacWright
5d9d41a815
Adding json map examples
2011-01-04 13:07:49 -05:00
Tom MacWright
094628e295
Less-confusing test file
2011-01-03 15:28:45 -05:00
Tom MacWright
177322708f
Adding examples for testing purposes
2011-01-03 14:46:31 -05:00
James A. Rosen
c58d8aa156
fixed @media and @page parsing problem
2010-11-27 06:34:17 +08:00
Ian Beck
f4437cb8f3
Modified selector regexen to support CSS character escapes, added test files to verify change
...
Closes #78 , closes #105
2010-11-27 06:07:14 +08:00
cloudhead
a985924d68
(new) support for unquoted data URIs in url()
2010-11-20 02:17:35 -05:00
Felix Geisendörfer
8e846a3b11
Fix test suite
...
Replaced old fs.open/read wrapper with fs.readFile.
2010-10-13 14:09:00 +08:00
cloudhead
4d6335b4e2
make strings behave like other nodes.
...
- rename 'content' to 'value'
2010-07-25 16:41:05 -04:00
cloudhead
ba2cfe9265
cleanup ruleset evaluation
...
- remove eval() from ruleset.toCSS
- fix multiple mixin calls with different arguments yeilding the same
output.
2010-07-23 19:46:48 -04:00
cloudhead
b71942966d
explicit evaluation of variables within js
2010-07-09 21:31:26 +02:00
cloudhead
4e46b104f1
test e() with javascript
2010-07-08 19:30:36 +02:00
cloudhead
bf6d68345d
preliminary support for evaluating JavaScript code inside LESS
2010-07-08 19:04:36 +02:00
cloudhead
00bbf81471
support parametric mixins with #
2010-07-08 00:27:32 +02:00
cloudhead
7d51a71ac0
change scope.less back, to test late binding
2010-07-08 00:22:34 +02:00
cloudhead
b5d74f8e38
fix compound variable substitutions
2010-07-08 00:22:01 +02:00
cloudhead
f7be8f515d
fix font shorthand with %
2010-07-08 00:21:36 +02:00
cloudhead
45b97a6054
big refactoring of ruleset.js, move eval code to eval()
2010-07-07 13:53:09 +02:00
cloudhead
38272c7f85
(test) mixin closures
2010-07-06 16:52:33 +02:00
cloudhead
3664f26c06
support functions in operations
2010-07-05 01:19:04 +02:00
cloudhead
8a4a9a471a
support variables in url()
2010-07-04 10:45:55 +02:00
cloudhead
d1c16908b6
fix syntax error with semi-colons in strings
2010-07-01 10:46:31 +02:00
cloudhead
1a56c6d225
proper chunkification of comments.
...
comments are preserved even with chunkified input now.
2010-07-01 01:31:48 +02:00
cloudhead
075523e96d
fix '!important' in certain scenarios
2010-06-27 16:40:12 -04:00
cloudhead
2aa945c98c
fix some issues with alpha getting lost
2010-06-19 14:35:37 -04:00
cloudhead
f272611137
fixed hsla => rgba conversion
2010-06-19 13:42:33 -04:00
cloudhead
7a80774960
fix comments in mixins.
2010-06-16 02:13:59 -04:00
cloudhead
e2a6228ff5
(new) Additions & improvements to color functions.
...
- Added spin() to change hue.
- Fixed darken/lighten to be additive.
- Added color extraction functions.
2010-06-15 20:13:19 -04:00
cloudhead
b1b8701c38
(test) mixin calls throw an error now, if no patterns match
2010-06-07 18:22:23 -04:00
cloudhead
23a4d55d04
fix optimizations, and errors on multi-line comments
2010-06-01 21:21:59 -04:00
cloudhead
8ab4d0aac0
treat Directive like a Ruleset
2010-05-23 12:50:20 -04:00
cloudhead
51ca5adb5c
@media tests
2010-05-22 18:24:57 -04:00
cloudhead
a3f252b727
don't cache return values. %() plays nice with strings
2010-05-13 20:15:59 -04:00
cloudhead
3cff4636dc
test cases for recent fixes
2010-05-07 00:49:03 -07:00
cloudhead
565fdf4705
tests for value.length > 1 bug
2010-05-07 00:40:39 -07:00
cloudhead
94780c2f72
moved index.js to lib/less
2010-05-05 00:23:45 -04:00
cloudhead
472da6ff23
whitespace
2010-05-04 20:37:14 -04:00
cloudhead
7155f44f43
be more flexible, pattern matching
2010-05-04 20:37:06 -04:00
cloudhead
0ec53f74e0
make operations left-associative Closes #20
2010-05-03 14:25:12 -04:00
cloudhead
1d9b95f9e6
Evaluate function calls properly.
...
- `fun(f())` is now possible
- Anonymous can take normal strings
- Tests for `%()`
2010-04-30 14:07:05 -04:00
cloudhead
0aaf715232
fixed selector attributes not parsing with a '-'
2010-04-28 17:29:22 -04:00
cloudhead
8c762b9e26
Support for pattern-matching on mixin calls.
2010-04-25 00:09:40 -04:00
cloudhead
1c52d6ac4d
use a hash to store variables, fixes variable redifinition bug
2010-04-23 17:52:36 -04:00
cloudhead
1e6cbbf61d
fixed bug with passing variables to functions
2010-04-23 13:49:55 -04:00
cloudhead
6778f51fc3
Added a couple colour functions
...
saturate, desaturate, lighten, darken, greyscale.
2010-04-23 13:36:50 -04:00
cloudhead
f0942511bb
Fixed HSL
...
HSL colors weren't working properly. The values weren't being normalized
to {0, 1}.
2010-04-23 13:35:36 -04:00
cloudhead
7be2b22cfb
the e() LESS function
...
used to escape strings in values.
Added Anonymous node to handle things like this.
2010-04-22 19:42:02 -04:00
cloudhead
444401dc3c
Fixed mixin calls not working from dynamic mixins
...
Dynamic mixins aren't treated enough like Rulesets.
There is some code duplication which needs to be cleaned up,
ideally they should share a prototype.
2010-04-22 13:34:49 -04:00
cloudhead
23640fe116
Fix dynamic mixins with nested rules
...
Dynamic mixins with more than one level of nesting wouldn't work.
This is now fixed. Also refactored mixin.definition.eval a little.
2010-04-22 13:07:41 -04:00
cloudhead
ac7916aa87
Reorganized some of the parsing rule order
...
- Fix for "{" not parsing
- Use some backtracking when necessary,
it's prettier than crazy lookaheads.
2010-04-21 10:12:29 -04:00
cloudhead
9a34a05555
@import with .css files no longer precompiles. This gives us some extra
...
flexibility.
2010-03-30 15:32:38 -04:00
cloudhead
24bba952c7
removed lib/ext, moved lib/less.js to /index.js, moved Array/find to tree.find
2010-03-27 02:26:55 -04:00
cloudhead
3253afad27
asynchronous import functionality! All tests passing.
2010-03-21 19:18:47 -04:00
cloudhead
ef97105ce3
made parser reentrant for import support
2010-03-21 19:17:37 -04:00
cloudhead
80905fdc58
no need to pass starting values to toCSS() anymore
2010-03-19 20:14:35 -04:00
cloudhead
5ee3d47e11
operations.less now passes
2010-03-19 18:47:17 -04:00
cloudhead
53996b2364
parse() is now asynch, and uses a callback
2010-03-19 17:50:35 -04:00
cloudhead
adc937d68e
no more accessors.. they aren't very useful it turns out, with mixins
2010-03-18 14:50:50 -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
7e2217ba86
fixed and upgraded the css tests a little
2010-03-11 15:37:05 -05:00
cloudhead
c244c01dd2
add title to test output, skip directories
2010-03-07 23:42:19 -05:00
cloudhead
be893c5993
support for nested rulesets inside dynamic mixins, with lexical scoping
2010-03-07 20:20:50 -05:00
cloudhead
23775bda9b
implemented dynamic mixins
2010-03-07 18:49:54 -05:00
cloudhead
2b0853de81
comments, wooh!
2010-03-06 17:53:55 -05:00
cloudhead
a13b64b5f6
get lazy-eval to pass
2010-03-05 20:42:32 -05:00
cloudhead
d44bff1da3
added some styling to the tests
2010-03-05 19:36:51 -05:00
cloudhead
2367be123e
remove vows, seeing as Less isnt asynch, there really is not point.
2010-03-05 19:29:46 -05:00
cloudhead
39f0ab258c
remove prod.less
2010-03-05 19:20:08 -05:00
cloudhead
463807d3b6
comment fix
2010-03-05 14:57:23 -05:00
cloudhead
456463368d
function.less now passes
2010-03-05 14:56:47 -05:00
cloudhead
3638933aac
fixed some more test files, css-3 passes now
2010-03-05 13:32:38 -05:00
cloudhead
81240d0aab
selectors.less now passes tests
2010-03-05 11:43:08 -05:00
cloudhead
06acb92d20
fixed css-3.css
2010-03-04 16:14:03 -05:00
cloudhead
2f55206eb7
removed big.less/css from test
2010-03-04 14:51:22 -05:00
cloudhead
d54302a394
fixed whitespace.css to conform to new output
2010-03-04 14:49:50 -05:00
cloudhead
fde347016b
for now, we only support basic selectors, when mixing in, eventually, we can upgrade the Selector/match method to return the number of matched elements
2010-03-04 13:51:59 -05:00
cloudhead
d860763454
tweaked tests to match less.js
2010-03-04 01:41:03 -05:00
cloudhead
f70f6a542c
merge node->tree changes
2010-03-01 19:47:32 -05:00
cloudhead
adb2fd2864
try/catch around code-gen, in test. Catch some extra errors too
2010-02-28 01:07:43 -05:00
cloudhead
1e16d0233c
ParseErrors dont raise an exception anymore, we just set parser.error
to the value of the error
2010-02-27 14:14:52 -05:00
cloudhead
5a1adf801a
removed unused test files
2010-02-26 22:36:54 -05:00
cloudhead
3903ed0864
changed rulesets.css output to match the new parser output
2010-02-26 18:16:48 -05:00
cloudhead
756b3976e7
tweaked big.less to not raise errors on comment parsing (tested elsewhere)
2010-02-26 14:50:03 -05:00
cloudhead
b60c296e6e
throw a ParseError, instead of just an Error
2010-02-25 22:49:52 -05:00
cloudhead
2353885d6a
moved some tests around
2010-02-25 21:30:34 -05:00
cloudhead
c2453cd02a
additional tests in comments.kess
2010-02-25 21:30:05 -05:00
cloudhead
6d022858be
ws
2010-02-25 19:48:09 -05:00
cloudhead
3a3674c9ad
removed test.less from test/
2010-02-25 18:02:34 -05:00
cloudhead
22b4380645
output is multiline for everything by default
2010-02-25 18:01:35 -05:00
cloudhead
372ff15d06
remove inspect from test file
2010-02-25 16:19:43 -05:00
cloudhead
cd2d25d442
vows.js for testing, of course
2010-02-25 15:51:07 -05:00
cloudhead
43174dd252
preliminary test file
2010-02-25 15:50:46 -05:00
cloudhead
4e74ba4cb1
removed some test files
2010-02-25 15:49:15 -05:00
cloudhead
70e6523db4
test files, from less.rb
2010-02-23 18:02:00 -05:00