Skip to content

Commit 5069f61

Browse files
authored
v8.0.0 (#390)
1 parent bb370f7 commit 5069f61

File tree

12 files changed

+93
-366
lines changed

12 files changed

+93
-366
lines changed

.github/workflows/test-older-node.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node: [12, 14, 16]
16+
node: [14, 16]
1717
steps:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-node@v4

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changes to cssdb
22

3+
### 8.0.0 (March 30, 2024)
4+
5+
- Added `contrast-color-function`
6+
- Added `web-feature` identifiers for some features
7+
- Changed [license to `MIT-0` to align with `postcss-preset-env`](https://preset-env.cssdb.org/blog/license-change/)
8+
- Removed `color-contrast`
9+
- Removed `color-mod-function`
10+
- Removed `custom-property-sets`
11+
- Removed `gray-function`
12+
- Removed `matches-pseudo-class`
13+
314
### 7.11.2 (March 9, 2024)
415

516
- Updated `@mdn/browser-compat-data` to `5.5.14` (patch)

LICENSE.md

Lines changed: 18 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,18 @@
1-
# CC0 1.0 Universal
2-
3-
## Statement of Purpose
4-
5-
The laws of most jurisdictions throughout the world automatically confer
6-
exclusive Copyright and Related Rights (defined below) upon the creator and
7-
subsequent owner(s) (each and all, an “owner”) of an original work of
8-
authorship and/or a database (each, a “Work”).
9-
10-
Certain owners wish to permanently relinquish those rights to a Work for the
11-
purpose of contributing to a commons of creative, cultural and scientific works
12-
(“Commons”) that the public can reliably and without fear of later claims of
13-
infringement build upon, modify, incorporate in other works, reuse and
14-
redistribute as freely as possible in any form whatsoever and for any purposes,
15-
including without limitation commercial purposes. These owners may contribute
16-
to the Commons to promote the ideal of a free culture and the further
17-
production of creative, cultural and scientific works, or to gain reputation or
18-
greater distribution for their Work in part through the use and efforts of
19-
others.
20-
21-
For these and/or other purposes and motivations, and without any expectation of
22-
additional consideration or compensation, the person associating CC0 with a
23-
Work (the “Affirmer”), to the extent that he or she is an owner of Copyright
24-
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and
25-
publicly distribute the Work under its terms, with knowledge of his or her
26-
Copyright and Related Rights in the Work and the meaning and intended legal
27-
effect of CC0 on those rights.
28-
29-
1. Copyright and Related Rights. A Work made available under CC0 may be
30-
protected by copyright and related or neighboring rights (“Copyright and
31-
Related Rights”). Copyright and Related Rights include, but are not limited
32-
to, the following:
33-
1. the right to reproduce, adapt, distribute, perform, display,
34-
communicate, and translate a Work;
35-
2. moral rights retained by the original author(s) and/or performer(s);
36-
3. publicity and privacy rights pertaining to a person’s image or likeness
37-
depicted in a Work;
38-
4. rights protecting against unfair competition in regards to a Work,
39-
subject to the limitations in paragraph 4(i), below;
40-
5. rights protecting the extraction, dissemination, use and reuse of data
41-
in a Work;
42-
6. database rights (such as those arising under Directive 96/9/EC of the
43-
European Parliament and of the Council of 11 March 1996 on the legal
44-
protection of databases, and under any national implementation thereof,
45-
including any amended or successor version of such directive); and
46-
7. other similar, equivalent or corresponding rights throughout the world
47-
based on applicable law or treaty, and any national implementations
48-
thereof.
49-
50-
2. Waiver. To the greatest extent permitted by, but not in contravention of,
51-
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
52-
unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright
53-
and Related Rights and associated claims and causes of action, whether now
54-
known or unknown (including existing as well as future claims and causes of
55-
action), in the Work (i) in all territories worldwide, (ii) for the maximum
56-
duration provided by applicable law or treaty (including future time
57-
extensions), (iii) in any current or future medium and for any number of
58-
copies, and (iv) for any purpose whatsoever, including without limitation
59-
commercial, advertising or promotional purposes (the “Waiver”). Affirmer makes
60-
the Waiver for the benefit of each member of the public at large and to the
61-
detriment of Affirmer’s heirs and successors, fully intending that such Waiver
62-
shall not be subject to revocation, rescission, cancellation, termination, or
63-
any other legal or equitable action to disrupt the quiet enjoyment of the Work
64-
by the public as contemplated by Affirmer’s express Statement of Purpose.
65-
66-
3. Public License Fallback. Should any part of the Waiver for any reason be
67-
judged legally invalid or ineffective under applicable law, then the Waiver
68-
shall be preserved to the maximum extent permitted taking into account
69-
Affirmer’s express Statement of Purpose. In addition, to the extent the Waiver
70-
is so judged Affirmer hereby grants to each affected person a royalty-free, non
71-
transferable, non sublicensable, non exclusive, irrevocable and unconditional
72-
license to exercise Affirmer’s Copyright and Related Rights in the Work (i) in
73-
all territories worldwide, (ii) for the maximum duration provided by applicable
74-
law or treaty (including future time extensions), (iii) in any current or
75-
future medium and for any number of copies, and (iv) for any purpose
76-
whatsoever, including without limitation commercial, advertising or promotional
77-
purposes (the “License”). The License shall be deemed effective as of the date
78-
CC0 was applied by Affirmer to the Work. Should any part of the License for any
79-
reason be judged legally invalid or ineffective under applicable law, such
80-
partial invalidity or ineffectiveness shall not invalidate the remainder of the
81-
License, and in such case Affirmer hereby affirms that he or she will not (i)
82-
exercise any of his or her remaining Copyright and Related Rights in the Work
83-
or (ii) assert any associated claims and causes of action with respect to the
84-
Work, in either case contrary to Affirmer’s express Statement of Purpose.
85-
86-
4. Limitations and Disclaimers.
87-
1. No trademark or patent rights held by Affirmer are waived, abandoned,
88-
surrendered, licensed or otherwise affected by this document.
89-
2. Affirmer offers the Work as-is and makes no representations or
90-
warranties of any kind concerning the Work, express, implied, statutory
91-
or otherwise, including without limitation warranties of title,
92-
merchantability, fitness for a particular purpose, non infringement, or
93-
the absence of latent or other defects, accuracy, or the present or
94-
absence of errors, whether or not discoverable, all to the greatest
95-
extent permissible under applicable law.
96-
3. Affirmer disclaims responsibility for clearing rights of other persons
97-
that may apply to the Work or any use thereof, including without
98-
limitation any person’s Copyright and Related Rights in the Work.
99-
Further, Affirmer disclaims responsibility for obtaining any necessary
100-
consents, permissions or other rights required for any use of the Work.
101-
4. Affirmer understands and acknowledges that Creative Commons is not a
102-
party to this document and has no duty or obligation with respect to
103-
this CC0 or use of the Work.
104-
105-
For more information, please see
106-
https://creativecommons.org/publicdomain/zero/1.0/.
1+
MIT No Attribution (MIT-0)
2+
3+
Copyright © CSSTools Contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the “Software”), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9+
of the Software, and to permit persons to whom the Software is furnished to do
10+
so.
11+
12+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
SOFTWARE.

cssdb.json

Lines changed: 12 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -254,20 +254,6 @@
254254
"example": ".background {\n background-color:#ccc;\n}\n.background.color-adjust {\n color-adjust: economy;\n}\n.background.color-adjust-exact {\n color-adjust: exact;\n}",
255255
"vendors_implementations": 2
256256
},
257-
{
258-
"id": "color-contrast",
259-
"title": "`color-contrast()` Function",
260-
"description": "A function for choosing the color that contrasts the most.",
261-
"specification": "https://drafts.csswg.org/css-color-6/#colorcontrast",
262-
"stage": 1,
263-
"browser_support": {},
264-
"docs": {
265-
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-contrast"
266-
},
267-
"example": "p {\n color: color-contrast(wheat vs tan, sienna, var(--myAccent), #d2691e);\n}",
268-
"polyfills": [],
269-
"vendors_implementations": 0
270-
},
271257
{
272258
"id": "color-function",
273259
"title": "`color()` Function",
@@ -367,22 +353,6 @@
367353
"vendors_implementations": 3,
368354
"web-feature": "color-mix"
369355
},
370-
{
371-
"id": "color-mod-function",
372-
"title": "`color-mod()` Function",
373-
"description": "A function for modifying colors",
374-
"specification": "https://www.w3.org/TR/css-color-4/#funcdef-color-mod",
375-
"stage": -1,
376-
"browser_support": {},
377-
"example": "p {\n color: color-mod(black alpha(50%));\n}",
378-
"polyfills": [
379-
{
380-
"type": "PostCSS Plugin",
381-
"link": "https://github.com/csstools/postcss-color-mod-function"
382-
}
383-
],
384-
"vendors_implementations": 0
385-
},
386356
{
387357
"id": "container-queries",
388358
"title": "Container Queries",
@@ -416,6 +386,18 @@
416386
"vendors_implementations": 3,
417387
"web-feature": "container-queries"
418388
},
389+
{
390+
"id": "contrast-color-function",
391+
"title": "`contrast-color()` Function",
392+
"description": "Dynamically specifying a text color with adequate contrast.",
393+
"specification": "https://drafts.csswg.org/css-color-5/#contrast-color",
394+
"stage": 2,
395+
"browser_support": {},
396+
"docs": {},
397+
"example": "p {\n color: contrast-color( purple max );\n}",
398+
"polyfills": [],
399+
"vendors_implementations": 0
400+
},
419401
{
420402
"id": "custom-media-queries",
421403
"title": "Custom Media Queries",
@@ -466,22 +448,6 @@
466448
"vendors_implementations": 3,
467449
"web-feature": "custom-properties"
468450
},
469-
{
470-
"id": "custom-property-sets",
471-
"title": "Custom Property Sets",
472-
"description": "A syntax for storing properties in named variables, referenceable in other style rules",
473-
"specification": "https://tabatkins.github.io/specs/css-apply-rule/",
474-
"stage": -1,
475-
"browser_support": {},
476-
"example": "img {\n --some-length-styles: {\n height: 32px;\n width: 32px;\n };\n\n @apply --some-length-styles;\n}",
477-
"polyfills": [
478-
{
479-
"type": "PostCSS Plugin",
480-
"link": "https://github.com/pascalduez/postcss-apply"
481-
}
482-
],
483-
"vendors_implementations": 0
484-
},
485451
{
486452
"id": "custom-selectors",
487453
"title": "Custom Selectors",
@@ -907,22 +873,6 @@
907873
],
908874
"vendors_implementations": 2
909875
},
910-
{
911-
"id": "gray-function",
912-
"title": "`gray()` Function",
913-
"description": "A function for specifying fully desaturated colors",
914-
"specification": "https://www.w3.org/TR/css-color-4/#funcdef-gray",
915-
"stage": -1,
916-
"browser_support": {},
917-
"example": "p {\n color: gray(50);\n}",
918-
"polyfills": [
919-
{
920-
"type": "PostCSS Plugin",
921-
"link": "https://github.com/postcss/postcss-color-gray"
922-
}
923-
],
924-
"vendors_implementations": 0
925-
},
926876
{
927877
"id": "grid-layout",
928878
"title": "Grid Layout",
@@ -1428,25 +1378,6 @@
14281378
"vendors_implementations": 3,
14291379
"web-feature": "viewport-relative-unit-variants"
14301380
},
1431-
{
1432-
"id": "matches-pseudo-class",
1433-
"title": "`:matches()` Matches-Any Pseudo-Class",
1434-
"description": "A pseudo-class for matching elements in a selector list",
1435-
"specification": "https://www.w3.org/TR/selectors-4/#selectordef-matches",
1436-
"stage": -1,
1437-
"browser_support": {},
1438-
"docs": {
1439-
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/:is"
1440-
},
1441-
"example": "p:matches(:first-child, .special) {\n margin-top: 1em;\n}",
1442-
"polyfills": [
1443-
{
1444-
"type": "PostCSS Plugin",
1445-
"link": "https://github.com/postcss/postcss-selector-matches"
1446-
}
1447-
],
1448-
"vendors_implementations": 0
1449-
},
14501381
{
14511382
"id": "media-queries-aspect-ratio-number-values",
14521383
"title": "Aspect-Ratio number values",

0 commit comments

Comments
 (0)