less 1.2.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npmignore +1 -0
- package/CHANGELOG.md +118 -0
- package/CONTRIBUTING.md +50 -0
- package/Makefile +14 -2
- package/benchmark/benchmark.less +11 -11
- package/benchmark/less-benchmark.js +1 -1
- package/bin/lessc +77 -21
- package/build/amd.js +6 -0
- package/build/ecma-5.js +120 -0
- package/build/header.js +7 -0
- package/build/require-rhino.js +7 -0
- package/build/require.js +7 -0
- package/lib/less/browser.js +192 -53
- package/lib/less/colors.js +1 -0
- package/lib/less/functions.js +159 -10
- package/lib/less/index.js +125 -56
- package/lib/less/lessc_helper.js +62 -0
- package/lib/less/parser.js +391 -154
- package/lib/less/rhino.js +84 -23
- package/lib/less/tree/anonymous.js +15 -1
- package/lib/less/tree/assignment.js +3 -1
- package/lib/less/tree/call.js +12 -6
- package/lib/less/tree/color.js +10 -0
- package/lib/less/tree/dimension.js +3 -1
- package/lib/less/tree/directive.js +10 -10
- package/lib/less/tree/element.js +8 -7
- package/lib/less/tree/import.js +17 -14
- package/lib/less/tree/media.js +121 -0
- package/lib/less/tree/mixin.js +133 -45
- package/lib/less/tree/operation.js +5 -0
- package/lib/less/tree/quoted.js +15 -1
- package/lib/less/tree/ratio.js +13 -0
- package/lib/less/tree/rule.js +7 -0
- package/lib/less/tree/ruleset.js +236 -37
- package/lib/less/tree/selector.js +21 -11
- package/lib/less/tree/unicode-descriptor.js +13 -0
- package/lib/less/tree/url.js +16 -14
- package/lib/less/tree/variable.js +13 -1
- package/lib/less/tree.js +28 -0
- package/package.json +13 -3
- package/test/browser/common.js +74 -0
- package/test/browser/css/relative-urls/urls.css +36 -0
- package/test/browser/css/rootpath/urls.css +36 -0
- package/test/browser/css/rootpath-relative/urls.css +36 -0
- package/test/browser/css/urls.css +36 -0
- package/test/browser/jasmine-html.js +681 -0
- package/test/browser/jasmine.css +82 -0
- package/test/browser/jasmine.js +2600 -0
- package/test/browser/less/imports/urls.less +4 -0
- package/test/browser/less/imports/urls2.less +4 -0
- package/test/browser/less/relative-urls/urls.less +33 -0
- package/test/browser/less/rootpath/urls.less +33 -0
- package/test/browser/less/rootpath-relative/urls.less +33 -0
- package/test/browser/less/urls.less +33 -0
- package/test/browser/phantom-runner.js +139 -0
- package/test/browser/runner-browser.js +3 -0
- package/test/browser/runner-main.js +15 -0
- package/test/browser/runner-relative-urls.js +4 -0
- package/test/browser/runner-rootpath-relative.js +5 -0
- package/test/browser/runner-rootpath.js +4 -0
- package/test/browser/template.htm +10 -0
- package/test/browser-test-prepare.js +29 -0
- package/test/css/charsets.css +1 -0
- package/test/css/colors.css +22 -0
- package/test/css/comments.css +7 -0
- package/test/css/css-3.css +57 -2
- package/test/css/css-escapes.css +4 -0
- package/test/css/css.css +11 -11
- package/test/css/debug/linenumbers-all.css +43 -0
- package/test/css/debug/linenumbers-comments.css +35 -0
- package/test/css/debug/linenumbers-mediaquery.css +35 -0
- package/test/css/functions.css +59 -2
- package/test/css/ie-filters.css +7 -3
- package/test/css/import-once.css +3 -0
- package/test/css/import.css +7 -9
- package/test/css/javascript.css +3 -2
- package/test/css/media.css +168 -0
- package/test/css/mixins-args.css +35 -4
- package/test/css/mixins-guards.css +13 -0
- package/test/css/mixins-important.css +21 -0
- package/test/css/mixins-named-args.css +27 -0
- package/test/css/mixins-pattern.css +4 -6
- package/test/css/mixins.css +50 -0
- package/test/css/scope.css +20 -0
- package/test/css/selectors.css +76 -0
- package/test/css/static-urls/urls.css +42 -0
- package/test/css/strings.css +2 -2
- package/test/css/urls.css +42 -0
- package/test/css/variables.css +0 -1
- package/test/css/whitespace.css +4 -0
- package/test/less/charsets.less +3 -0
- package/test/less/colors.less +27 -0
- package/test/less/comments.less +12 -0
- package/test/less/css-3.less +54 -6
- package/test/less/css-escapes.less +6 -1
- package/test/less/css.less +14 -12
- package/test/less/debug/import/test.less +25 -0
- package/test/less/debug/linenumbers.less +23 -0
- package/test/less/errors/bad-variable-declaration1.less +1 -0
- package/test/less/errors/bad-variable-declaration1.txt +2 -0
- package/test/less/errors/comment-in-selector.less +1 -0
- package/test/less/errors/comment-in-selector.txt +2 -0
- package/test/less/errors/import-missing.less +1 -0
- package/test/less/errors/import-missing.txt +3 -0
- package/test/less/errors/import-no-semi.less +1 -0
- package/test/less/errors/import-no-semi.txt +2 -0
- package/test/less/errors/import-subfolder1.less +1 -0
- package/test/less/errors/import-subfolder1.txt +3 -0
- package/test/less/errors/import-subfolder2.less +1 -0
- package/test/less/errors/import-subfolder2.txt +2 -0
- package/test/less/errors/imports/import-subfolder1.less +1 -0
- package/test/less/errors/imports/import-subfolder2.less +1 -0
- package/test/less/errors/imports/import-test.less +4 -0
- package/test/less/errors/imports/subfolder/mixin-not-defined.less +1 -0
- package/test/less/errors/imports/subfolder/parse-error-curly-bracket.less +1 -0
- package/test/less/errors/javascript-error.less +3 -0
- package/test/less/errors/javascript-error.txt +4 -0
- package/test/less/errors/mixed-mixin-definition-args-1.less +6 -0
- package/test/less/errors/mixed-mixin-definition-args-1.txt +4 -0
- package/test/less/errors/mixed-mixin-definition-args-2.less +6 -0
- package/test/less/errors/mixed-mixin-definition-args-2.txt +4 -0
- package/test/less/errors/mixin-not-defined.less +11 -0
- package/test/less/errors/mixin-not-defined.txt +3 -0
- package/test/less/errors/mixin-not-matched.less +6 -0
- package/test/less/errors/mixin-not-matched.txt +3 -0
- package/test/less/errors/mixin-not-matched2.less +6 -0
- package/test/less/errors/mixin-not-matched2.txt +3 -0
- package/test/less/errors/parse-error-curly-bracket.less +1 -0
- package/test/less/errors/parse-error-curly-bracket.txt +2 -0
- package/test/less/errors/parse-error-missing-bracket.less +2 -0
- package/test/less/errors/parse-error-missing-bracket.txt +2 -0
- package/test/less/errors/parse-error-with-import.less +13 -0
- package/test/less/errors/parse-error-with-import.txt +4 -0
- package/test/less/errors/property-ie5-hack.less +3 -0
- package/test/less/errors/property-ie5-hack.txt +4 -0
- package/test/less/errors/recursive-variable.less +1 -0
- package/test/less/errors/recursive-variable.txt +2 -0
- package/test/less/functions.less +64 -2
- package/test/less/ie-filters.less +7 -0
- package/test/less/import/deeper/import-once-test-a.less +1 -0
- package/test/less/import/import-and-relative-paths-test.less +6 -0
- package/test/less/import/import-charset-test.less +1 -0
- package/test/less/import/import-once-test-c.less +6 -0
- package/test/less/import/import-test-a.less +1 -0
- package/test/less/import/import-test-c.less +0 -1
- package/test/less/import/imports/font.less +8 -0
- package/test/less/import/imports/logo.less +5 -0
- package/test/less/import/urls.less +1 -0
- package/test/less/import-once.less +4 -0
- package/test/less/import.less +2 -1
- package/test/less/javascript.less +4 -2
- package/test/less/media.less +169 -1
- package/test/less/mixins-args.less +54 -11
- package/test/less/mixins-guards.less +30 -0
- package/test/less/mixins-important.less +4 -0
- package/test/less/mixins-named-args.less +36 -0
- package/test/less/mixins-pattern.less +3 -0
- package/test/less/mixins.less +47 -0
- package/test/less/scope.less +48 -1
- package/test/less/selectors.less +88 -0
- package/test/less/static-urls/urls.less +33 -0
- package/test/less/strings.less +1 -1
- package/test/less/urls.less +33 -0
- package/test/less/variables.less +0 -1
- package/test/less/whitespace.less +7 -0
- package/test/less-test.js +145 -36
- package/bench.css +0 -5943
- package/benchmark/b1.less +0 -3980
- package/dist/less-1.1.0.js +0 -2695
- package/dist/less-1.1.0.min.js +0 -16
- package/dist/less-1.1.1.js +0 -2710
- package/dist/less-1.1.1.min.js +0 -16
- package/dist/less-1.1.2.js +0 -2712
- package/dist/less-1.1.2.min.js +0 -16
- package/dist/less-1.1.3.js +0 -2721
- package/dist/less-1.1.3.min.js +0 -16
- package/dist/less-1.1.4.js +0 -2769
- package/dist/less-1.1.4.min.js +0 -16
- package/dist/less-1.1.5.js +0 -2805
- package/dist/less-1.1.5.min.js +0 -9
- package/dist/less-1.1.6.js +0 -3004
- package/dist/less-1.1.6.min.js +0 -9
- package/dist/less-1.2.0.js +0 -3293
- package/dist/less-1.2.0.min.js +0 -9
- package/dist/less-1.2.1.js +0 -3318
- package/dist/less-1.2.1.min.js +0 -9
- package/dist/less-1.2.2.js +0 -3337
- package/dist/less-1.2.2.min.js +0 -9
- package/dist/less-rhino-1.1.3.js +0 -2460
- package/dist/less-rhino-1.1.5.js +0 -2481
- package/foo.less +0 -2
- package/lib/less/cssmin.js +0 -355
- package/test/html/index.html +0 -10
- package/test/html/less.js +0 -3333
- package/test/html/lib.less +0 -2
- package/test/html/styles.less +0 -8
- package/x.less +0 -4
package/test/css/functions.css
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
height: undefined("self");
|
|
5
5
|
border-width: 5;
|
|
6
6
|
variable: 11;
|
|
7
|
+
background: linear-gradient(#000000, #ffffff);
|
|
7
8
|
}
|
|
8
9
|
#built-in {
|
|
9
10
|
escaped: -Some::weird(#thing, y);
|
|
@@ -14,23 +15,68 @@
|
|
|
14
15
|
greyscale: #2e2e2e;
|
|
15
16
|
spin-p: #bf6a40;
|
|
16
17
|
spin-n: #bf4055;
|
|
18
|
+
luma-white: 100%;
|
|
19
|
+
luma-black: 0%;
|
|
20
|
+
luma-black-alpha: 0%;
|
|
21
|
+
luma-red: 21%;
|
|
22
|
+
luma-green: 72%;
|
|
23
|
+
luma-blue: 7%;
|
|
24
|
+
luma-yellow: 93%;
|
|
25
|
+
luma-cyan: 79%;
|
|
26
|
+
luma-white-alpha: 50%;
|
|
27
|
+
contrast-filter: contrast(30%);
|
|
28
|
+
contrast-white: #000000;
|
|
29
|
+
contrast-black: #ffffff;
|
|
30
|
+
contrast-red: #ffffff;
|
|
31
|
+
contrast-green: #000000;
|
|
32
|
+
contrast-blue: #ffffff;
|
|
33
|
+
contrast-yellow: #000000;
|
|
34
|
+
contrast-cyan: #000000;
|
|
35
|
+
contrast-light: #111111;
|
|
36
|
+
contrast-dark: #eeeeee;
|
|
37
|
+
contrast-light-thresh: #111111;
|
|
38
|
+
contrast-dark-thresh: #eeeeee;
|
|
39
|
+
contrast-high-thresh: #eeeeee;
|
|
40
|
+
contrast-low-thresh: #111111;
|
|
17
41
|
format: "rgb(32, 128, 64)";
|
|
18
42
|
format-string: "hello world";
|
|
19
43
|
format-multiple: "hello earth 2";
|
|
20
44
|
format-url-encode: "red is %23ff0000";
|
|
21
45
|
eformat: rgb(32, 128, 64);
|
|
46
|
+
unitless: 12;
|
|
47
|
+
unit: 14em;
|
|
22
48
|
hue: 98;
|
|
23
49
|
saturation: 12%;
|
|
24
50
|
lightness: 95%;
|
|
51
|
+
red: 255;
|
|
52
|
+
green: 255;
|
|
53
|
+
blue: 255;
|
|
25
54
|
rounded: 11;
|
|
55
|
+
rounded-two: 10.67;
|
|
26
56
|
roundedpx: 3px;
|
|
57
|
+
roundedpx-three: 3.333px;
|
|
58
|
+
rounded-percentage: 10%;
|
|
59
|
+
ceil: 11px;
|
|
60
|
+
floor: 12px;
|
|
27
61
|
percentage: 20%;
|
|
28
62
|
color: #ff0011;
|
|
63
|
+
tint: #898989;
|
|
64
|
+
tint-full: #ffffff;
|
|
65
|
+
tint-percent: #898989;
|
|
66
|
+
shade: #686868;
|
|
67
|
+
shade-full: #000000;
|
|
68
|
+
shade-percent: #686868;
|
|
69
|
+
hsv: #4d2926;
|
|
70
|
+
hsva: rgba(77, 40, 38, 0.2);
|
|
71
|
+
mix: #ff3300;
|
|
72
|
+
mix-0: #ffff00;
|
|
73
|
+
mix-100: #ff0000;
|
|
74
|
+
mix-weightless: #ff8000;
|
|
29
75
|
}
|
|
30
76
|
#built-in .is-a {
|
|
31
77
|
color: true;
|
|
32
|
-
|
|
33
|
-
|
|
78
|
+
color1: true;
|
|
79
|
+
color2: true;
|
|
34
80
|
keyword: true;
|
|
35
81
|
number: true;
|
|
36
82
|
string: true;
|
|
@@ -41,3 +87,14 @@
|
|
|
41
87
|
#alpha {
|
|
42
88
|
alpha: rgba(153, 94, 51, 0.6);
|
|
43
89
|
}
|
|
90
|
+
#blendmodes {
|
|
91
|
+
multiply: #ed0000;
|
|
92
|
+
screen: #f600f6;
|
|
93
|
+
overlay: #ed0000;
|
|
94
|
+
softlight: #ff0000;
|
|
95
|
+
hardlight: #0000ed;
|
|
96
|
+
difference: #f600f6;
|
|
97
|
+
exclusion: #f600f6;
|
|
98
|
+
average: #7b007b;
|
|
99
|
+
negation: #d73131;
|
|
100
|
+
}
|
package/test/css/ie-filters.css
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
.nav {
|
|
2
|
-
filter: progid:
|
|
3
|
-
filter: progid:
|
|
4
|
-
filter: progid:
|
|
2
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=20);
|
|
3
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
|
|
4
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#333333", endColorstr="#000000", GradientType=0);
|
|
5
|
+
}
|
|
6
|
+
.evalTest1 {
|
|
7
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=30);
|
|
8
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=5);
|
|
5
9
|
}
|
package/test/css/import.css
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
@import "import-test-d.css";
|
|
2
|
-
|
|
3
1
|
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
|
|
4
2
|
|
|
5
3
|
@import url(something.css) screen and (color) and (max-width: 600px);
|
|
6
|
-
#import {
|
|
7
|
-
color: #ff0000;
|
|
8
|
-
}
|
|
9
|
-
.mixin {
|
|
10
|
-
height: 10px;
|
|
11
|
-
color: #ff0000;
|
|
12
|
-
}
|
|
13
4
|
#import-test {
|
|
14
5
|
height: 10px;
|
|
15
6
|
color: #ff0000;
|
|
@@ -21,3 +12,10 @@
|
|
|
21
12
|
width: 100%;
|
|
22
13
|
}
|
|
23
14
|
}
|
|
15
|
+
#import {
|
|
16
|
+
color: #ff0000;
|
|
17
|
+
}
|
|
18
|
+
.mixin {
|
|
19
|
+
height: 10px;
|
|
20
|
+
color: #ff0000;
|
|
21
|
+
}
|
package/test/css/javascript.css
CHANGED
package/test/css/media.css
CHANGED
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
max-width: 480;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
@media all and (device-aspect-ratio: 16/9) {
|
|
19
|
+
body {
|
|
20
|
+
max-width: 800px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
18
23
|
@media all and (orientation: portrait) {
|
|
19
24
|
aside {
|
|
20
25
|
float: none;
|
|
@@ -25,3 +30,166 @@
|
|
|
25
30
|
max-width: 480px;
|
|
26
31
|
}
|
|
27
32
|
}
|
|
33
|
+
@media print {
|
|
34
|
+
body {
|
|
35
|
+
padding: 20px;
|
|
36
|
+
}
|
|
37
|
+
body header {
|
|
38
|
+
background-color: red;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
@media print and (orientation: landscape) {
|
|
42
|
+
body {
|
|
43
|
+
margin-left: 20px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
@media screen {
|
|
47
|
+
.sidebar {
|
|
48
|
+
width: 300px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@media screen and (orientation: landscape) {
|
|
52
|
+
.sidebar {
|
|
53
|
+
width: 500px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
@media a {
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
@media a and b {
|
|
60
|
+
.first .second .third {
|
|
61
|
+
width: 300px;
|
|
62
|
+
}
|
|
63
|
+
.first .second .fourth {
|
|
64
|
+
width: 3;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
@media a and b and c {
|
|
68
|
+
.first .second .third {
|
|
69
|
+
width: 500px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@media a, b and c {
|
|
73
|
+
body {
|
|
74
|
+
width: 95%;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
@media a and x, b and c and x, a and y, b and c and y {
|
|
78
|
+
body {
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.a {
|
|
83
|
+
background: black;
|
|
84
|
+
}
|
|
85
|
+
@media handheld {
|
|
86
|
+
.a {
|
|
87
|
+
background: white;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
@media handheld and (max-width: 100px) {
|
|
91
|
+
.a {
|
|
92
|
+
background: red;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
.b {
|
|
96
|
+
background: black;
|
|
97
|
+
}
|
|
98
|
+
@media handheld {
|
|
99
|
+
.b {
|
|
100
|
+
background: white;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
@media handheld and (max-width: 200px) {
|
|
104
|
+
.b {
|
|
105
|
+
background: red;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
@media only screen and (max-width: 200px) {
|
|
109
|
+
width: 480px;
|
|
110
|
+
}
|
|
111
|
+
@media print {
|
|
112
|
+
@page :left {
|
|
113
|
+
margin: 0.5cm;
|
|
114
|
+
}
|
|
115
|
+
@page :right {
|
|
116
|
+
margin: 0.5cm;
|
|
117
|
+
}
|
|
118
|
+
@page Test:first {
|
|
119
|
+
margin: 1cm;
|
|
120
|
+
}
|
|
121
|
+
@page :first {
|
|
122
|
+
size: 8.5in 11in;@top-left {
|
|
123
|
+
margin: 1cm;
|
|
124
|
+
}
|
|
125
|
+
@top-left-corner {
|
|
126
|
+
margin: 1cm;
|
|
127
|
+
}
|
|
128
|
+
@top-center {
|
|
129
|
+
margin: 1cm;
|
|
130
|
+
}
|
|
131
|
+
@top-right {
|
|
132
|
+
margin: 1cm;
|
|
133
|
+
}
|
|
134
|
+
@top-right-corner {
|
|
135
|
+
margin: 1cm;
|
|
136
|
+
}
|
|
137
|
+
@bottom-left {
|
|
138
|
+
margin: 1cm;
|
|
139
|
+
}
|
|
140
|
+
@bottom-left-corner {
|
|
141
|
+
margin: 1cm;
|
|
142
|
+
}
|
|
143
|
+
@bottom-center {
|
|
144
|
+
margin: 1cm;
|
|
145
|
+
}
|
|
146
|
+
@bottom-right {
|
|
147
|
+
margin: 1cm;
|
|
148
|
+
}
|
|
149
|
+
@bottom-right-corner {
|
|
150
|
+
margin: 1cm;
|
|
151
|
+
}
|
|
152
|
+
@left-top {
|
|
153
|
+
margin: 1cm;
|
|
154
|
+
}
|
|
155
|
+
@left-middle {
|
|
156
|
+
margin: 1cm;
|
|
157
|
+
}
|
|
158
|
+
@left-bottom {
|
|
159
|
+
margin: 1cm;
|
|
160
|
+
}
|
|
161
|
+
@right-top {
|
|
162
|
+
margin: 1cm;
|
|
163
|
+
}
|
|
164
|
+
@right-middle {
|
|
165
|
+
content: "Page " counter(page);
|
|
166
|
+
}
|
|
167
|
+
@right-bottom {
|
|
168
|
+
margin: 1cm;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (min-resolution: 2dppx), (min-resolution: 128dpcm) {
|
|
173
|
+
.b {
|
|
174
|
+
background: red;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
body {
|
|
178
|
+
background: red;
|
|
179
|
+
}
|
|
180
|
+
@media (max-width: 500px) {
|
|
181
|
+
body {
|
|
182
|
+
background: green;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
@media (max-width: 1000px) {
|
|
186
|
+
body {
|
|
187
|
+
background: red;
|
|
188
|
+
background: blue;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
@media (max-width: 1000px) and (max-width: 500px) {
|
|
192
|
+
body {
|
|
193
|
+
background: green;
|
|
194
|
+
}
|
|
195
|
+
}
|
package/test/css/mixins-args.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
#hidden {
|
|
2
2
|
color: transparent;
|
|
3
|
+
}
|
|
4
|
+
#hidden1 {
|
|
3
5
|
color: transparent;
|
|
4
6
|
}
|
|
5
7
|
.two-args {
|
|
@@ -49,16 +51,45 @@ body {
|
|
|
49
51
|
#var-inside {
|
|
50
52
|
width: 10px;
|
|
51
53
|
}
|
|
52
|
-
.id-class {
|
|
53
|
-
color: red;
|
|
54
|
-
color: red;
|
|
55
|
-
}
|
|
56
54
|
.arguments {
|
|
57
55
|
border: 1px solid #000000;
|
|
56
|
+
width: 1px;
|
|
58
57
|
}
|
|
59
58
|
.arguments2 {
|
|
60
59
|
border: 0px;
|
|
60
|
+
width: 0px;
|
|
61
|
+
}
|
|
62
|
+
.arguments3 {
|
|
63
|
+
border: 0px;
|
|
64
|
+
width: 0px;
|
|
65
|
+
}
|
|
66
|
+
.arguments4 {
|
|
67
|
+
border: 0 1 2 3 4;
|
|
68
|
+
rest: 1 2 3 4;
|
|
69
|
+
width: 0;
|
|
61
70
|
}
|
|
62
71
|
.edge-case {
|
|
63
72
|
border: "{";
|
|
73
|
+
width: "{";
|
|
74
|
+
}
|
|
75
|
+
.comma-vs-semi-colon {
|
|
76
|
+
one: a;
|
|
77
|
+
two: b, c;
|
|
78
|
+
one: d, e;
|
|
79
|
+
two: f;
|
|
80
|
+
one: g;
|
|
81
|
+
one: h;
|
|
82
|
+
one: i;
|
|
83
|
+
one: j;
|
|
84
|
+
one: k;
|
|
85
|
+
two: l;
|
|
86
|
+
one: m, n;
|
|
87
|
+
one: o, p;
|
|
88
|
+
two: q;
|
|
89
|
+
one: r, s;
|
|
90
|
+
two: t;
|
|
91
|
+
}
|
|
92
|
+
#named-conflict {
|
|
93
|
+
four: a, 11, 12, 13;
|
|
94
|
+
four: a, 21, 22, 23;
|
|
64
95
|
}
|
|
@@ -56,3 +56,16 @@
|
|
|
56
56
|
content: not false;
|
|
57
57
|
content: not false and false, not false;
|
|
58
58
|
}
|
|
59
|
+
.equality-units {
|
|
60
|
+
test: pass;
|
|
61
|
+
}
|
|
62
|
+
.colorguardtest {
|
|
63
|
+
content: is #ff0000;
|
|
64
|
+
content: is not #0000ff its #ff0000;
|
|
65
|
+
content: is not #0000ff its #800080;
|
|
66
|
+
}
|
|
67
|
+
.stringguardtest {
|
|
68
|
+
content: is theme1;
|
|
69
|
+
content: is not theme2;
|
|
70
|
+
content: is theme1 no quotes;
|
|
71
|
+
}
|
|
@@ -15,3 +15,24 @@
|
|
|
15
15
|
border: 9;
|
|
16
16
|
boxer: 9;
|
|
17
17
|
}
|
|
18
|
+
.class .inner {
|
|
19
|
+
test: 1;
|
|
20
|
+
}
|
|
21
|
+
.class .inner {
|
|
22
|
+
test: 2 !important;
|
|
23
|
+
}
|
|
24
|
+
.class .inner {
|
|
25
|
+
test: 3;
|
|
26
|
+
}
|
|
27
|
+
.class .inner {
|
|
28
|
+
test: 4 !important;
|
|
29
|
+
}
|
|
30
|
+
.class .inner {
|
|
31
|
+
test: 5;
|
|
32
|
+
}
|
|
33
|
+
.class .inner {
|
|
34
|
+
test: 0 !important;
|
|
35
|
+
}
|
|
36
|
+
.class .inner {
|
|
37
|
+
test: 9;
|
|
38
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.named-arg {
|
|
2
|
+
color: blue;
|
|
3
|
+
width: 5px;
|
|
4
|
+
height: 99%;
|
|
5
|
+
args: 1px 100%;
|
|
6
|
+
text-align: center;
|
|
7
|
+
}
|
|
8
|
+
.class {
|
|
9
|
+
width: 5px;
|
|
10
|
+
height: 19%;
|
|
11
|
+
args: 1px 20%;
|
|
12
|
+
}
|
|
13
|
+
.all-args-wrong-args {
|
|
14
|
+
width: 10px;
|
|
15
|
+
height: 9%;
|
|
16
|
+
args: 2px 10%;
|
|
17
|
+
}
|
|
18
|
+
.named-args2 {
|
|
19
|
+
width: 15px;
|
|
20
|
+
height: 49%;
|
|
21
|
+
color: #646464;
|
|
22
|
+
}
|
|
23
|
+
.named-args3 {
|
|
24
|
+
width: 5px;
|
|
25
|
+
height: 29%;
|
|
26
|
+
color: #123456;
|
|
27
|
+
}
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
.zero {
|
|
2
|
+
variadic: true;
|
|
2
3
|
zero: 0;
|
|
3
4
|
one: 1;
|
|
4
5
|
two: 2;
|
|
5
6
|
three: 3;
|
|
6
7
|
}
|
|
7
8
|
.one {
|
|
8
|
-
|
|
9
|
+
variadic: true;
|
|
9
10
|
one: 1;
|
|
10
11
|
one-req: 1;
|
|
11
12
|
two: 2;
|
|
12
13
|
three: 3;
|
|
13
14
|
}
|
|
14
15
|
.two {
|
|
15
|
-
|
|
16
|
-
one: 1;
|
|
16
|
+
variadic: true;
|
|
17
17
|
two: 2;
|
|
18
18
|
three: 3;
|
|
19
19
|
}
|
|
20
20
|
.three {
|
|
21
|
-
|
|
22
|
-
one: 1;
|
|
23
|
-
two: 2;
|
|
21
|
+
variadic: true;
|
|
24
22
|
three-req: 3;
|
|
25
23
|
three: 3;
|
|
26
24
|
}
|
package/test/css/mixins.css
CHANGED
|
@@ -61,11 +61,61 @@
|
|
|
61
61
|
.jo.ki {
|
|
62
62
|
background: none;
|
|
63
63
|
}
|
|
64
|
+
.amp.support {
|
|
65
|
+
color: orange;
|
|
66
|
+
}
|
|
64
67
|
.extended {
|
|
65
68
|
width: 100%;
|
|
66
69
|
border: 1px;
|
|
67
70
|
background: none;
|
|
71
|
+
color: orange;
|
|
68
72
|
}
|
|
69
73
|
.foo .bar {
|
|
70
74
|
width: 100%;
|
|
71
75
|
}
|
|
76
|
+
.underParents {
|
|
77
|
+
color: red;
|
|
78
|
+
}
|
|
79
|
+
.parent .underParents {
|
|
80
|
+
color: red;
|
|
81
|
+
}
|
|
82
|
+
* + h1 {
|
|
83
|
+
margin-top: 25px;
|
|
84
|
+
}
|
|
85
|
+
legend + h1 {
|
|
86
|
+
margin-top: 0;
|
|
87
|
+
}
|
|
88
|
+
h1 + * {
|
|
89
|
+
margin-top: 10px;
|
|
90
|
+
}
|
|
91
|
+
* + h2 {
|
|
92
|
+
margin-top: 20px;
|
|
93
|
+
}
|
|
94
|
+
legend + h2 {
|
|
95
|
+
margin-top: 0;
|
|
96
|
+
}
|
|
97
|
+
h2 + * {
|
|
98
|
+
margin-top: 8px;
|
|
99
|
+
}
|
|
100
|
+
* + h3 {
|
|
101
|
+
margin-top: 15px;
|
|
102
|
+
}
|
|
103
|
+
legend + h3 {
|
|
104
|
+
margin-top: 0;
|
|
105
|
+
}
|
|
106
|
+
h3 + * {
|
|
107
|
+
margin-top: 5px;
|
|
108
|
+
}
|
|
109
|
+
.error {
|
|
110
|
+
background-image: "/a.png";
|
|
111
|
+
background-position: center center;
|
|
112
|
+
}
|
|
113
|
+
.test-rec .recursion {
|
|
114
|
+
color: black;
|
|
115
|
+
}
|
|
116
|
+
.button {
|
|
117
|
+
padding-left: 44px;
|
|
118
|
+
}
|
|
119
|
+
.button.large {
|
|
120
|
+
padding-left: 40em;
|
|
121
|
+
}
|
package/test/css/scope.css
CHANGED
|
@@ -13,3 +13,23 @@
|
|
|
13
13
|
border-color: #000000;
|
|
14
14
|
background-color: #ffffff;
|
|
15
15
|
}
|
|
16
|
+
.scope {
|
|
17
|
+
scoped-val: #008000;
|
|
18
|
+
}
|
|
19
|
+
.heightIsSet {
|
|
20
|
+
height: 1024px;
|
|
21
|
+
}
|
|
22
|
+
.useHeightInMixinCall {
|
|
23
|
+
mixin-height: 1024px;
|
|
24
|
+
}
|
|
25
|
+
.imported {
|
|
26
|
+
exists: true;
|
|
27
|
+
}
|
|
28
|
+
.testImported {
|
|
29
|
+
exists: true;
|
|
30
|
+
}
|
|
31
|
+
#allAreUsedHere {
|
|
32
|
+
default: 'top level';
|
|
33
|
+
scope: 'top level';
|
|
34
|
+
sub-scope-only: 'inside';
|
|
35
|
+
}
|
package/test/css/selectors.css
CHANGED
|
@@ -51,7 +51,83 @@ p a span {
|
|
|
51
51
|
.qux .foo .baz {
|
|
52
52
|
display: inline;
|
|
53
53
|
}
|
|
54
|
+
.qux.foo .bar,
|
|
55
|
+
.qux.foo .baz {
|
|
56
|
+
display: inline-block;
|
|
57
|
+
}
|
|
54
58
|
.qux .foo .bar .biz,
|
|
55
59
|
.qux .foo .baz .biz {
|
|
56
60
|
display: none;
|
|
57
61
|
}
|
|
62
|
+
.a.b.c {
|
|
63
|
+
color: red;
|
|
64
|
+
}
|
|
65
|
+
.c .b.a {
|
|
66
|
+
color: red;
|
|
67
|
+
}
|
|
68
|
+
.foo .p.bar {
|
|
69
|
+
color: red;
|
|
70
|
+
}
|
|
71
|
+
.foo.p.bar {
|
|
72
|
+
color: red;
|
|
73
|
+
}
|
|
74
|
+
.foo + .foo {
|
|
75
|
+
background: amber;
|
|
76
|
+
}
|
|
77
|
+
.foo + .foo {
|
|
78
|
+
background: amber;
|
|
79
|
+
}
|
|
80
|
+
.foo + .foo,
|
|
81
|
+
.foo + .bar,
|
|
82
|
+
.bar + .foo,
|
|
83
|
+
.bar + .bar {
|
|
84
|
+
background: amber;
|
|
85
|
+
}
|
|
86
|
+
.foo a > .foo a,
|
|
87
|
+
.foo a > .bar a,
|
|
88
|
+
.foo a > .foo b,
|
|
89
|
+
.foo a > .bar b,
|
|
90
|
+
.bar a > .foo a,
|
|
91
|
+
.bar a > .bar a,
|
|
92
|
+
.bar a > .foo b,
|
|
93
|
+
.bar a > .bar b,
|
|
94
|
+
.foo b > .foo a,
|
|
95
|
+
.foo b > .bar a,
|
|
96
|
+
.foo b > .foo b,
|
|
97
|
+
.foo b > .bar b,
|
|
98
|
+
.bar b > .foo a,
|
|
99
|
+
.bar b > .bar a,
|
|
100
|
+
.bar b > .foo b,
|
|
101
|
+
.bar b > .bar b {
|
|
102
|
+
background: amber;
|
|
103
|
+
}
|
|
104
|
+
.other ::fnord {
|
|
105
|
+
color: #ff0000;
|
|
106
|
+
}
|
|
107
|
+
.other::fnord {
|
|
108
|
+
color: #ff0000;
|
|
109
|
+
}
|
|
110
|
+
.other ::bnord {
|
|
111
|
+
color: #ff0000;
|
|
112
|
+
}
|
|
113
|
+
.other::bnord {
|
|
114
|
+
color: #ff0000;
|
|
115
|
+
}
|
|
116
|
+
.blood {
|
|
117
|
+
color: red;
|
|
118
|
+
}
|
|
119
|
+
.blood {
|
|
120
|
+
color: red;
|
|
121
|
+
}
|
|
122
|
+
.bloodred {
|
|
123
|
+
color: green;
|
|
124
|
+
}
|
|
125
|
+
#blood.blood.red.black {
|
|
126
|
+
color: black;
|
|
127
|
+
}
|
|
128
|
+
:nth-child(3):nth-child(3) {
|
|
129
|
+
second-use: deprecated;
|
|
130
|
+
}
|
|
131
|
+
.test:nth-child(odd):not( :nth-child(3)) {
|
|
132
|
+
color: #ff0000;
|
|
133
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@import "folder (1)/../css/background.css";
|
|
2
|
+
|
|
3
|
+
@import "folder (1)/import-test-d.css";
|
|
4
|
+
@font-face {
|
|
5
|
+
src: url("/fonts/garamond-pro.ttf");
|
|
6
|
+
src: local(Futura-Medium), url(folder\ \(1\)/fonts.svg#MyGeometricModern) format("svg");
|
|
7
|
+
}
|
|
8
|
+
#shorthands {
|
|
9
|
+
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
|
10
|
+
}
|
|
11
|
+
#misc {
|
|
12
|
+
background-image: url(folder\ \(1\)/images/image.jpg);
|
|
13
|
+
}
|
|
14
|
+
#data-uri {
|
|
15
|
+
background: url(data:image/png;charset=utf-8;base64,
|
|
16
|
+
kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/
|
|
17
|
+
k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U
|
|
18
|
+
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
|
|
19
|
+
background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==);
|
|
20
|
+
background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700);
|
|
21
|
+
}
|
|
22
|
+
#svg-data-uri {
|
|
23
|
+
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
|
24
|
+
}
|
|
25
|
+
.comma-delimited {
|
|
26
|
+
background: url(folder\ \(1\)/bg.jpg) no-repeat, url(folder\ \(1\)/bg.png) repeat-x top left, url(folder\ \(1\)/bg);
|
|
27
|
+
}
|
|
28
|
+
.values {
|
|
29
|
+
url: url('folder (1)/Trebuchet');
|
|
30
|
+
}
|
|
31
|
+
#logo {
|
|
32
|
+
width: 100px;
|
|
33
|
+
height: 100px;
|
|
34
|
+
background: url('folder (1)/../assets/logo.png');
|
|
35
|
+
}
|
|
36
|
+
@font-face {
|
|
37
|
+
font-family: xecret;
|
|
38
|
+
src: url('folder (1)/../assets/xecret.ttf');
|
|
39
|
+
}
|
|
40
|
+
#secret {
|
|
41
|
+
font-family: xecret, sans-serif;
|
|
42
|
+
}
|
package/test/css/strings.css
CHANGED
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
url2: "http://lesscss.org/image-256.jpg";
|
|
31
31
|
url3: "http://lesscss.org#445566";
|
|
32
32
|
url4: "http://lesscss.org/hello";
|
|
33
|
-
url5: "http://lesscss.org/54.
|
|
33
|
+
url5: "http://lesscss.org/54.4px";
|
|
34
34
|
}
|
|
35
35
|
.mix-mul-class {
|
|
36
36
|
color: #0000ff;
|
|
37
37
|
color: #ff0000;
|
|
38
|
-
color: #
|
|
38
|
+
color: #000000;
|
|
39
39
|
color: #ffa500;
|
|
40
40
|
}
|