Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/less/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"node": ">=14"
},
"scripts": {
"quicktest": "grunt quicktest",
"test": "grunt test",
"grunt": "grunt",
"lint": "eslint '**/*.{ts,js}'",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-data/css/_main/comments.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@
/* } */
/*by block */
#output-block {
comment: /* // Not commented out // */;
--comment: /* // Not commented out // */;
}
/*comment on last line*/
16 changes: 12 additions & 4 deletions packages/test-data/css/_main/container.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@
font-size: 1rem;
}
@media (hover: hover) {
font-size: 1.75rem;
.foo {
font-size: 1.75rem;
}
}
}
.media-2 {
Expand All @@ -220,9 +222,13 @@
font-size: 1rem;
}
@media (hover: hover) {
font-size: 1.75rem;
.foo {
font-size: 1.75rem;
}
@media not all and (hover: hover) {
color: limegreen;
.foo {
color: limegreen;
}
}
.media-3 {
padding: 0.5rem;
Expand All @@ -235,7 +241,9 @@
}
@container (min-width: 768px) {
@media only screen and (min-width: 768px) {
color: aliceblue;
.foo {
color: aliceblue;
}
}
.container-1 {
color: purple;
Expand Down
12 changes: 6 additions & 6 deletions packages/test-data/css/_main/css-3.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@namespace foo url(http://www.example.com);
.comma-delimited {
text-shadow: -1px -1px 1px red, 6px 5px 5px yellow;
-moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset, 0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
Expand All @@ -17,10 +18,10 @@
p:not([class*="lead"]) {
color: black;
}
input[type="text"].class#id[attr=32]:not(1) {
input[type="text"].class#id[attr=i32]:not(.one) {
color: inherit;
}
div#id.class[a=1][b=2].class:not(1) {
div#id.class[a=one][b=two].class:not(.one) {
color: inherit;
}
ul.comma > li:not(:only-child)::after {
Expand Down Expand Up @@ -88,7 +89,6 @@ p::before {
@viewport {
font-size: 10px;
}
@namespace foo url(http://www.example.com);
foo|h1 {
color: blue;
}
Expand All @@ -109,15 +109,15 @@ h1 {
display: block;
}
}
::distributed(input::placeholder) {
:not(input::placeholder) {
color: #b3b3b3;
}
.shadow > .dom,
body > .shadow {
display: done;
}
:host(.sel .a),
:host-context(.sel .b),
:host(.sel.a),
:host-context(.sel.b),
.sel > .b,
::content .sel {
type: shadow-dom;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-data/css/_main/css-escapes.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ ng\:form {
textarea {
font-family: 'helvetica neue', 'wenquanyi micro hei', \5FAE\8F6F\96C5\9ED1, \5B8B\4F53, sans-serif;
}
anything to unquote
/* anything to unquote */
2 changes: 1 addition & 1 deletion packages/test-data/css/_main/extract-and-length.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
number-value: 12345678;
color-value: blue;
rgba-value: rgba(80, 160, 240, 0.67);
empty-value: ;
--empty-value: ;
name-length: 1;
string-length: 1;
number-length: 1;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-data/css/_main/functions.css
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ html {
a: 1;
b: 2;
c: 3;
e: ;
--e: ;
f: 6;
g: 3;
h: 5;
Expand Down
4 changes: 2 additions & 2 deletions packages/test-data/css/_main/import-reference.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
input[type="text"].class#id[attr=32]:not(1) {
input[type="text"].class#id[attr=i32]:not(.one) {
color: inherit;
}
div#id.class[a=1][b=2].class:not(1) {
div#id.class[a=one][b=two].class:not(.one) {
color: inherit;
}
@media print {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-data/css/_main/javascript.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
multiline: 2;
}
.scope {
empty: ;
--empty: ;
var: 42;
escaped: 7px;
}
Expand Down
5 changes: 0 additions & 5 deletions packages/test-data/css/_main/media.css
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,6 @@
background: green;
}
}
@media (example, all), speech {
body {
background: green;
}
}
@media (min-orientation: portrait) {
body {
background: green;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-data/css/_main/mixins-interpolated.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.123 {
.\123 {
a: 0;
}
.foo {
Expand Down
3 changes: 1 addition & 2 deletions packages/test-data/css/_main/selectors.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,13 @@ p a span {
color: #ff0000;
}
[prop],
[prop=10%],
[prop=ten-percent],
[prop|="value3"],
[prop*="val3"],
[|prop~="val3"],
[*|prop$="val3"],
[ns|prop^="val3"],
[p^="val3"],
[p=3],
[p] {
attributes: yes;
}
Expand Down
3 changes: 0 additions & 3 deletions packages/test-data/css/_main/strings.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
empty: '';
semi-colon: ';';
}
#escaped {
filter: DX.Transform.MS.BS.filter(opacity=50);
}
#one-line {
image: url(http://tooks.com);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/test-data/less/_main/comments.less
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@
// line immediately followed
/*by block */
@string_w_comment: ~"/* // Not commented out // */";
#output-block { comment: @string_w_comment; }
#output-block { --comment: @string_w_comment; }
/*comment on last line*/
16 changes: 11 additions & 5 deletions packages/test-data/less/_main/container.less
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@
}

@media (hover: hover) {
font-size: 1.75rem;
.foo {
font-size: 1.75rem;
}
}
}

Expand All @@ -263,10 +265,12 @@
}

@media (hover: hover) {
font-size: 1.75rem;
.foo {
font-size: 1.75rem;

@media not all and (hover: hover) {
color: limegreen;
@media not all and (hover: hover) {
color: limegreen;
}
}

.media-3 {
Expand All @@ -282,7 +286,9 @@

@container (min-width: 768px) {
@media only screen and (min-width: 768px) {
color: aliceblue;
.foo {
color: aliceblue;
}
}

.container-1 {
Expand Down
12 changes: 6 additions & 6 deletions packages/test-data/less/_main/css-3.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@namespace foo url(http://www.example.com);
.comma-delimited {
text-shadow: -1px -1px 1px red, 6px 5px 5px yellow;
-moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset,
Expand All @@ -19,11 +20,11 @@ p:not([class*="lead"]) {
color: black;
}

input[type="text"].class#id[attr=32]:not(1) {
input[type="text"].class#id[attr=i32]:not(.one) {
color: inherit;
}

div#id.class[a=1][b=2].class:not(1) {
div#id.class[a=one][b=two].class:not(.one) {
color: inherit;
}

Expand Down Expand Up @@ -96,7 +97,6 @@ p::before {
@viewport {
font-size: 10px;
}
@namespace foo url(http://www.example.com);

foo|h1 { color: blue; }
foo|* { color: yellow; }
Expand All @@ -110,16 +110,16 @@ h1 { color: green; }
display: block;
}
}
::distributed(input::placeholder) {
:not(input::placeholder) {
color: #b3b3b3;
}
.shadow > .dom,
body > .shadow {
display: done;
}

:host(.sel .a),
:host-context(.sel .b),
:host(.sel.a),
:host-context(.sel.b),
.sel > .b,
::content .sel {
type: shadow-dom;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-data/less/_main/css-escapes.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ textarea {
font-family: 'helvetica neue','wenquanyi micro hei',\5FAE\8F6F\96C5\9ED1, \5B8B\4F53, sans-serif;
}

e('anything to unquote');
e('/* anything to unquote */');
2 changes: 1 addition & 1 deletion packages/test-data/less/_main/extract-and-length.less
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
number-value: extract(12345678, 1);
color-value: extract(blue, 1);
rgba-value: extract(rgba(80, 160, 240, 0.67), 1);
empty-value: extract(~'', 1);
--empty-value: extract(~'', 1);

name-length: length(name);
string-length: length("string");
Expand Down
2 changes: 1 addition & 1 deletion packages/test-data/less/_main/functions.less
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ html {
b: if(not(true), 1, 2);
@1: if(not(false), {c: 3}, {d: 4}); @1();

e: if(not(true), 5);
--e: if(not(true), 5);
@f: boolean(3 = 4);
f: if(not(@f), 6);
g: if(true, 3, 5);
Expand Down
2 changes: 1 addition & 1 deletion packages/test-data/less/_main/javascript.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
return x})()`;
}
.scope {
empty: `+function(){}`;
--empty: `+function(){}`;
@foo: 42;
var: `parseInt(this.foo.toJS())`;
escaped: ~`2 + 5 + 'px'`;
Expand Down
6 changes: 0 additions & 6 deletions packages/test-data/less/_main/media.less
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,6 @@
}
}

@media (example, all,), speech {
body {
background: green;
}
}

@media (min-orientation:portrait) {
body {
background: green;
Expand Down
4 changes: 2 additions & 2 deletions packages/test-data/less/_main/mixins-interpolated.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

@a0: 123;
@a0: \123;
@a1: foo;
@a2: ~".foo";
@a4: ~"#foo";
Expand All @@ -25,7 +25,7 @@
}

mi-test-a {
.123();
.\123();
.foo();
#foo();
}
Expand Down
3 changes: 1 addition & 2 deletions packages/test-data/less/_main/selectors.less
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,13 @@ a {
}
@prop: p;
[prop],
[prop=10%],
[prop=ten-percent],
[prop|="value@{num}"],
[prop*="val@{num}"],
[|prop~="val@{num}"],
[*|prop$="val@{num}"],
[ns|prop^="val@{num}"],
[@{prop}^="val@{num}"],
[@{prop}=@{num}],
[@{prop}] {
attributes: yes;
}
Expand Down
3 changes: 0 additions & 3 deletions packages/test-data/less/_main/strings.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
empty: '';
semi-colon: ';';
}
#escaped {
filter: ~"DX.Transform.MS.BS.filter(opacity=50)";
}
#one-line { image: url(http://tooks.com) }
#crazy { image: url(http://), "}", url("http://}") }
#interpolation {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "4.4.1",
"version": "4.4.2",
"description": "Less files and CSS results",
"author": "Alexis Sellier <[email protected]>",
"contributors": [
Expand Down
Loading