@less/test-data 5.0.0-alpha.3 → 5.0.0-alpha.5

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.
@@ -1 +1 @@
1
- @media screen{body{margin:0}p{padding:0}}@layer base{body{margin:0}p{padding:0}div{border:0}}@supports (display: grid){.grid{display:grid}.item{grid-column:1}}@page{margin:2cm;size:A4}@keyframes slide{from{transform:translateX(0)}to{transform:translateX(100px)}}
1
+ @media screen{body{margin:0}p{padding:0}}@layer base{body{margin:0}p{padding:0}div{border:0}}@supports(display:grid){.grid{display:grid}.item{grid-column:1}}@page{margin:2cm;size:A4}@keyframes slide{from{transform:translateX(0)}to{transform:translateX(100px)}}
@@ -1 +1 @@
1
- @charset "UTF-8";@media screen,print,handheld{body{font-size:12pt}}@media screen{.container{color:red;background:blue}}@media screen{.test{color:red;background:blue}}@media screen,print{body{margin:0}}@media screen{.container{color:red}.container .child{color:blue}}@media screen{.wrapper .inner{color:green}}@page{margin:2cm;size:A4}@supports (display: grid){.grid{display:grid}.flex{display:flex}}@media screen{body{color:black}}@layer base{body{margin:0}p{padding:0}}@media screen{.test{color:value}}@media screen and print{body{color:black}}
1
+ @charset "UTF-8";@media screen,print,handheld{body{font-size:12pt}}@media screen{.container{color:red;background:blue}}@media screen{.test{color:red;background:blue}}@media screen,print{body{margin:0}}@media screen{.container{color:red}.container .child{color:blue}}@media screen{.wrapper .inner{color:green}}@page{margin:2cm;size:A4}@supports(display:grid){.grid{display:grid}.flex{display:flex}}@media screen{body{color:black}}@layer base{body{margin:0}p{padding:0}}@media screen{.test{color:value}}@media screen{@media print{body{color:black}}}
@@ -1,3 +1,3 @@
1
- #colours{color1:#fea;color2:#ffeeaa;color3:rgba(255,238,170,0.1);string:"#fea";/*! but not this type
1
+ #colours{color1:#fea;color2:#fea;color3:rgba(255,238,170,.1);string:"#fea";/*! but not this type
2
2
  Note preserved whitespace
3
- */}dimensions{val:.1px;val:0em;val:4cm;val:.2;val:5;angles-must-have-unit:0deg;durations-must-have-unit:0s;length-doesnt-have-unit:0px;width:auto\9}@page{marks:none;@top-left-corner{vertical-align:top}@top-left{vertical-align:top}}.shadow^.dom,body^^.shadow{display:done}
3
+ */}dimensions{val:.1px;val:0em;val:4cm;val:.2;val:5;angles-must-have-unit:0deg;durations-must-have-unit:0s;length-doesnt-have-unit:0px;width:auto\9}@page{marks:none;@top-left-corner{vertical-align:top}@top-left{vertical-align:top}}
@@ -30,7 +30,3 @@ dimensions {
30
30
  vertical-align: top;
31
31
  }
32
32
  }
33
- .shadow ^ .dom,
34
- body ^^ .shadow {
35
- display: done;
36
- }
@@ -2,7 +2,8 @@
2
2
  @import "folder (1)/import-test-d.css";
3
3
  @font-face {
4
4
  src: url("/fonts/garamond-pro.ttf");
5
- src: local(Futura-Medium), url(folder\ \(1\)/fonts.svg#MyGeometricModern) format("svg");
5
+ src: local(Futura-Medium),
6
+ url(folder\ \(1\)/fonts.svg#MyGeometricModern) format("svg");
6
7
  }
7
8
  #shorthands {
8
9
  background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
@@ -11,5 +11,5 @@
11
11
  color: #00ff00;
12
12
  }
13
13
  #overflow .e {
14
- color: rgba(0, 31, 255, 0.42);
14
+ color: rgba(-99.9, 31.4159, 321, 0.42);
15
15
  }
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ compile: {
3
+ // [jess R16] this fixture exercises the legacy Less caller-scope read
4
+ // (a mixin/detached-ruleset body reading a caller-local variable), which is
5
+ // OFF by default in jess v5; opt in so the fixture keeps its Less-4.x behavior.
6
+ allowCallerScope: true
7
+ }
8
+ };
@@ -15,7 +15,7 @@
15
15
  number-value: 12345678;
16
16
  color-value: blue;
17
17
  rgba-value: rgba(80, 160, 240, 0.67);
18
- --empty-value: extract(~'', 1);
18
+ --empty-value: extract(~'', 1);
19
19
  empty-value: ;
20
20
  name-length: 1;
21
21
  string-length: 1;
@@ -20,12 +20,12 @@
20
20
  luma-blue: 7.22%;
21
21
  luma-yellow: 92.78%;
22
22
  luma-cyan: 78.74%;
23
- luma-differs-from-luminance: 23.89833349%;
23
+ luma-differs-from-luminance: 23.898333493%;
24
24
  luminance-white: 100%;
25
25
  luminance-black: 0%;
26
26
  luminance-black-alpha: 0%;
27
27
  luminance-red: 21.26%;
28
- luminance-differs-from-luma: 36.40541176%;
28
+ luminance-differs-from-luma: 36.405411765%;
29
29
  contrast-filter: contrast(30%);
30
30
  saturate-filter: saturate(5%);
31
31
  contrast-white: #000000;
@@ -85,12 +85,12 @@
85
85
  ceil: 11px;
86
86
  floor: 12px;
87
87
  sqrt: 5px;
88
- pi: 3.14159265;
88
+ pi: 3.1415926536;
89
89
  mod: 2m;
90
90
  abs: 4%;
91
- tan: 0.90040404;
92
- sin: 0.17364818;
93
- cos: 0.84385396;
91
+ tan: 0.9004040443;
92
+ sin: 0.17364817767;
93
+ cos: 0.8438539587;
94
94
  atan: 0.1rad;
95
95
  atan: 34deg;
96
96
  atan: 45deg;
@@ -101,12 +101,12 @@
101
101
  min: 5;
102
102
  min: 1pt;
103
103
  min: 3mm;
104
- min: min(1, 4ex, 2pt);
104
+ min: min(6em, 5, 4ex, 3, 2pt, 1);
105
105
  min: min(calc(1em + 1vw), 1);
106
106
  min: min(var(--width), 802px);
107
107
  max: 3;
108
108
  max: 5em;
109
- max: max(5m, 3em);
109
+ max: max(1px, 2, 3em, 4, 5m, 6);
110
110
  max: min(var(--body-max-width), calc(100vw - 20px));
111
111
  max: max(1, calc(1em + 1vw));
112
112
  max-native: max(10vw, 100px);
@@ -4,7 +4,7 @@
4
4
  color: green;
5
5
  }
6
6
  }
7
- .only-with-visible,
7
+ .stays-invisible,
8
8
  .z {
9
9
  color: green;
10
10
  &:hover {
@@ -24,13 +24,12 @@ div#id.class[a=one][b=two].class:not(.one) {
24
24
  .visible:hover {
25
25
  color: green;
26
26
  }
27
- .only-with-visible + .visible,
28
- .visible + .only-with-visible,
27
+ .visible {
28
+ color: green;
29
+ }
29
30
  .visible + .visible {
30
31
  color: green;
31
32
  }
32
- .only-with-visible + .visible .sub,
33
- .visible + .only-with-visible .sub,
34
33
  .visible + .visible .sub {
35
34
  color: green;
36
35
  }
@@ -54,6 +53,9 @@ div#id.class[a=one][b=two].class:not(.one) {
54
53
  .b:hover {
55
54
  color: green;
56
55
  }
56
+ .b {
57
+ color: green;
58
+ }
57
59
  .b + .b {
58
60
  color: green;
59
61
  }
@@ -61,7 +63,7 @@ div#id.class[a=one][b=two].class:not(.one) {
61
63
  color: green;
62
64
  }
63
65
  .y {
64
- pulled-in: yes;
66
+ pulled-in: yes /* inline comment survives */;
65
67
  }
66
68
  /* comment pulled in */
67
69
  .visible {
@@ -7,7 +7,7 @@
7
7
  color: red;
8
8
  width: 10px;
9
9
  height: 30%;
10
- value: 3.141592653589793;
10
+ value: 3.1415926536;
11
11
  }
12
12
  @media screen and (max-width: 600px) {
13
13
  body {
@@ -2,7 +2,5 @@ module.exports = {
2
2
  language: {
3
3
  less: {}
4
4
  },
5
- output: [
6
- { file: '{name}.css', collapseNesting: false }
7
- ]
5
+ output: { collapseNesting: false }
8
6
  };
@@ -1,5 +1,3 @@
1
1
  export default {
2
- output: [
3
- { file: '{name}.css', collapseNesting: false }
4
- ]
2
+ output: { collapseNesting: false }
5
3
  }
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ compile: {
3
+ // [jess R16] this fixture exercises the legacy Less caller-scope read
4
+ // (a mixin/detached-ruleset body reading a caller-local variable), which is
5
+ // OFF by default in jess v5; opt in so the fixture keeps its Less-4.x behavior.
6
+ allowCallerScope: true
7
+ }
8
+ };