Luke Page
0ab748371c
basic support in definition, clean up and tests
2012-10-21 15:20:24 +01:00
Luke Page
587d6c2338
Add support for ';' as a delimiter
2012-10-21 15:20:24 +01:00
Luke Page
1990d8336f
Fix problem with name arguments with arguments variable and if you've specified all the arguments
2012-10-21 15:20:23 +01:00
Charles Lowell
fc8393d555
alternative to throwing an object literal.
...
create a real exception and extend it with the
custom properties that less needs to satisfy its
error generator. An alternative to the solution
proposed in cloudhead/less.js#963
2012-10-21 15:15:45 +01:00
Simone Deponti
ebc41e5c4b
Fixed nested media bug.
2012-10-07 12:16:08 +01:00
Simone Deponti
126667d4a0
Removed the passing around of an env.filename that is wrong when doing imports.
2012-10-07 12:16:06 +01:00
Simone Deponti
fd7a829079
getLocation() seems to return lines starting at 0, therefore we have to add 1.
...
This fixes the off-by-one bug,
and is consistent with what is done at line 238 in 'parser.js'.
2012-10-07 12:16:06 +01:00
Simone Deponti
bbdcc02c8b
Fixed some tests.
...
* Import filenames are okay, line numbers are off by one in some cases
* The nested media query still makes .tst show up as undefined
2012-10-07 12:16:04 +01:00
Vsevolod Vlasov
ccfa7402a1
Added ruleset source line number dumping support for debugging purposes.
2012-10-07 12:16:01 +01:00
Luke Page
819d6b0ce6
Support for escaped characters in attributes and unit tests moved into css-escapes
2012-09-23 17:06:21 +01:00
Luke Page
55d6e5a0ba
Allow multiline javascript expressions, fixes #885
2012-09-09 10:35:27 +01: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
3031517c13
Review comments from @cloudhead - alter chunker to not chunk @{X} and
...
simplify process and depreciated != deprecated
2012-09-09 10:27:22 +01:00
Luke Page
7f466c1bfe
New selector interpolation
2012-09-02 11:47: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
Anders Hellerup Madsen
d81ba3bb38
add support for utf-8, fixes #396 (this time less messy commit)
2012-08-30 20:08:48 +01:00
Luke Page
96ef26a9ff
Revert commit mistake
2012-08-24 06:45:28 +01:00
Luke Page
85ddc9f4e7
Add parent selector to user variable
2012-08-19 12:02:58 +01:00
Luke Page
6696368eb3
Remove UTF8 BOM - fixes #650
2012-08-19 09:36:06 +01:00
Luke Page
e94b5b616a
Fix other whitespace issue brought up in #406
2012-08-19 08:30:41 +01:00
revolunet
9e8330a256
fix #31 and #406
...
Conflicts:
lib/less/parser.js
2012-08-19 08:09:24 +01:00
Luke Page
8de8492d35
Fix mixin calls being recognised as mixin definitions when arguments contain spaces and interpolated strings. Fixes #901
2012-08-16 20:24:55 +01:00
Luke Page
8c6d14bcf2
Fix previous test. Fix error on invalid import. Fixes #761
2012-08-11 20:35:29 +01:00
Kristoffer Walker
26876bdbbf
propagate deep errors up callback chain
...
On branch deep-error-reporting
modified: lib/less/parser.js
2012-08-11 19:44:08 +01:00
Paulo Gaspar
66bbb9a44a
Fix for issue 592. Additional removal of TODOs and Rhino support by
...
@agatronic.
2012-08-11 16:40:59 +01:00
Luke Page
b809e8eeb2
Fix #861 and introduce tests for errors
2012-08-11 12:00:28 +01:00
Philip Harrison
0a65df5412
Derp, set vmin before vm
2012-08-10 15:47:01 +01:00
Philip Harrison
0a4e855002
Merge upstream
2012-08-10 15:40:42 +01:00
Philip Harrison
6cc1458c32
Add vmin unit to parser dimensions
...
Spec http://www.w3.org/TR/css3-values/#vmin-unit
2012-08-10 15:24:00 +01:00
Philip Harrison
4c4e2bfdcd
Add dppx and dpcm units to parser dimensions
...
dppx is currently supported by Firefox > 16.
This can be used to target retina setups:
@media (min-resolution: 2dppx) {}
http://www.w3.org/TR/css3-values/#resolution
2012-08-10 15:04:58 +01:00
Luke Page
be74f9a837
Fix regression on shorthand. Fixes #887
2012-08-10 07:35:40 +01:00
Luke Page
b96e307bd5
Support for support/viewport/page directives. Fixes #847 and fixes #366
2012-08-08 22:55:36 +01:00
Alex Ganose
d22bcdc828
Removed toLowerCase function call so the function name remains the same
...
when used with a mixin and add test for rotateX
2012-08-05 17:14:43 +01:00
DocLabyrinth
e6e41fac6f
Changed parser to avoid all alpha() calls being parsed as IE style functions and added relevant tests. Fixes #669
...
Conflicts:
test/css/colors.css
test/less/colors.less
2012-08-05 12:23:16 +01:00
Luke Page
63821cdbe6
Fix all the parent combinator issues
2012-07-30 21:41:34 +01:00
Paul Mohr
f4518cc997
Added -khtml support for @keyframes
2012-07-29 17:00:17 +01:00
Evan Torrie
8284ce5fe0
Added CSS3 specific relative length units
...
See http://dev.w3.org/csswg/css3-values/#relative-length-units
2012-07-29 16:47:12 +01:00
Andrew Stone
221e850b89
add support for ratios in media queries
2012-07-28 18:14:48 +01:00
Dustin Cass
cb8856fe6f
Adjust all regexes in parser.js to use similar style for character classes
2012-07-26 16:28:10 -07:00
Dustin Cass
4821735ba2
Adjust attribute selector regex to allow for numbers and underscores in attribute names ( fixes #863 , fixes #876 ).
2012-07-26 15:47:53 -07:00
Sasha Sklar
b235734a11
Merge pull request #753 from clarkni5/master
...
Adding "dpi" as a valid dimensions for media queries
2012-05-15 07:44:37 -07:00
comfuture
94f70f7121
fixed issue #795
2012-05-06 11:13:30 +09:00
James Foster
1857b7c5aa
Implement named parameters
2012-04-30 03:30:02 +01:00
Nicholas Clark
6333fddaa2
Adding "dpi" to the list of valid dimensions.
2012-04-05 16:59:33 -04:00
cloudhead
8891564917
import-once functionality
2012-03-21 18:03:04 +01:00
Alexis Sellier
67ed7dfcb3
variable selectors must be paranthesized
2012-03-10 20:25:10 +01:00
Alexis Sellier
d955198c85
Merge branch 'master' of github.com:cloudhead/less.js
2012-03-04 22:15:37 +01:00
Alexis Sellier
93b23d2c24
support strings as selectors
...
example:
@n: 1;
~".span@{n}" { ... }
2012-03-04 22:13:04 +01:00
Andrew Stone
6e57f91fd0
fix global variable leaks
2012-03-01 12:39:01 -05:00