source: frontend/node_modules/postcss-lab-function/CHANGELOG.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 3.2 KB
Line 
1# Changes to PostCSS Lab Function
2
3### 4.2.1 (July 8, 2022)
4
5- Fix case insensitive matching.
6
7### 4.2.0 (April 4, 2022)
8
9- Allow percentage and number units in more color components.
10
11```css
12.percentages {
13 color-1: lab(40% 35% 30%);
14 color-2: lch(40% 50% 39);
15
16 /* becomes */
17
18 color-1: rgb(163, 57, 35);
19 color-1: color(display-p3 0.59266 0.25309 0.17075);
20 color-2: rgb(181, 30, 19);
21 color-2: color(display-p3 0.65205 0.18193 0.12753);
22}
23
24.numbers {
25 color-1: lab(40 35 30);
26 color-2: lch(40 50 39);
27
28 /* becomes */
29
30 color-1: rgb(152, 68, 47);
31 color-1: color(display-p3 0.55453 0.28432 0.20788);
32 color-2: rgb(157, 63, 45);
33 color-2: color(display-p3 0.57072 0.27138 0.20109);
34}
35```
36
37### 4.1.2 (March 8, 2022)
38
39- Fix gamut mapping giving overly unsaturated colors.
40- Implement powerless color components in gamut mapping.
41
42### 4.1.1 (February 15, 2022)
43
44- Fix plugin name
45
46### 4.1.0 (February 12, 2022)
47
48- Add gamut mapping for out of gamut colors.
49- Add conversion to `display-p3` as a wider gamut fallback.
50
51[Read more about out of gamut colors](https://github.com/csstools/postcss-plugins/blob/main/plugins/postcss-lab-function/README.md#out-of-gamut-colors)
52
53[Read more about `color(display-p3 0 0 0)`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color())
54
55```css
56.color-lab {
57 color: lab(40% 56.6 39);
58}
59
60/* with a display-p3 fallback : */
61.color {
62 color: rgb(179, 35, 35);
63 color: color(display-p3 0.64331 0.19245 0.16771);
64}
65```
66
67### 4.0.4 (February 5, 2022)
68
69- Improved `es module` and `commonjs` compatibility
70
71### 4.0.3 (January 2, 2022)
72
73- Removed Sourcemaps from package tarball.
74- Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121).
75
76### 4.0.2 (December 13, 2021)
77
78- Changed: now uses `postcss-value-parser` for parsing.
79- Updated: documentation
80- Added: support for CSS variables with `preserve: true` option.
81- Fixed: Hue values with units in `lch` functions are now correctly handled.
82- Fixed: Rounding of values to match current browser behavior.
83
84### 4.0.1 (November 18, 2021)
85
86- Added: Safeguards against postcss-values-parser potentially throwing an error.
87- Updated: postcss-value-parser to 6.0.1 (patch)
88
89### 4.0.0 (September 17, 2021)
90
91- Updated: Support for PostCS 8+ (major).
92- Updated: Support for Node 12+ (major).
93
94### 3.1.2 (April 25, 2020)
95
96- Updated: Publish
97
98### 3.1.1 (April 25, 2020)
99
100- Updated: Using `walkType` to evade walker bug in `postcss-values-parser`
101
102### 3.1.0 (April 25, 2020)
103
104- Updated: `postcss-values-parser` to 3.2.0 (minor).
105
106### 3.0.1 (April 12, 2020)
107
108- Updated: Ownership moved to CSSTools.
109
110### 3.0.0 (April 12, 2020)
111
112- Updated: `postcss-values-parser` to 3.1.1 (major).
113- Updated: Node support to 10.0.0 (major).
114- Updated: Feature to use new percentage syntax.
115- Removed: Support for the removed `gray()` function.
116
117### 2.0.1 (September 18, 2018)
118
119- Updated: PostCSS Values Parser 2.0.0
120
121### 2.0.0 (September 17, 2018)
122
123- Updated: Support for PostCSS 7+
124- Updated: Support for Node 6+
125
126### 1.1.0 (July 24, 2018)
127
128- Added: Support for `gray(a / b)` as `lab(a 0 0 / b)`
129
130### 1.0.1 (May 11, 2018)
131
132- Fixed: Values beyond the acceptable 0-255 RGB range
133
134### 1.0.0 (May 11, 2018)
135
136- Initial version
Note: See TracBrowser for help on using the repository browser.