Skip to content

Commit f4c7659

Browse files
Catching up with Safari 15.4 (#104)
* Do not allow flagged features Features behind a flag were showing as supported * Updating dependencies * Adding cascade layers * Linting * `color-mix` is not dead * Generating source files
1 parent 1008e1d commit f4c7659

File tree

6 files changed

+627
-1683
lines changed

6 files changed

+627
-1683
lines changed

cssdb.json

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,28 @@
118118
],
119119
"vendors_implementations": 1
120120
},
121+
{
122+
"id": "cascade-layers",
123+
"title": "CSS Cascade Layers",
124+
"description": "The `@layer` at-rule allows authors to explicitly layer their styles in the cascade, before specificity and order of appearance are considered.",
125+
"specification": "https://www.w3.org/TR/css-cascade-5/#layering",
126+
"stage": 2,
127+
"browser_support": {
128+
"edge": "99",
129+
"firefox": "97",
130+
"chrome": "99",
131+
"safari": "15.4",
132+
"ios_saf": "15.4",
133+
"android": "99",
134+
"and_chr": "99"
135+
},
136+
"docs": {
137+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/@layer"
138+
},
139+
"example": "/* Un-layered styles have the highest priority */\na {\n color: mediumvioletred;\n}\n\n@layer defaults {\n a { color: maroon; }\n}",
140+
"polyfills": [],
141+
"vendors_implementations": 3
142+
},
121143
{
122144
"id": "case-insensitive-attributes",
123145
"title": "Case-Insensitive Attributes",
@@ -206,16 +228,13 @@
206228
"description": "A function for choosing the color that contrasts the most.",
207229
"specification": "https://www.w3.org/TR/css-color-5/#colorcontrast",
208230
"stage": 2,
209-
"browser_support": {
210-
"safari": "15",
211-
"ios_saf": "15"
212-
},
231+
"browser_support": {},
213232
"docs": {
214233
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-contrast()"
215234
},
216235
"example": "p {\n color: color-contrast(wheat vs tan, sienna, var(--myAccent), #d2691e);\n}",
217236
"polyfills": [],
218-
"vendors_implementations": 1
237+
"vendors_implementations": 0
219238
},
220239
{
221240
"id": "color-function",
@@ -271,8 +290,8 @@
271290
"id": "color-mix",
272291
"title": "`color-mix()` Function",
273292
"description": "A function for mixing colors",
274-
"specification": "https://drafts.csswg.org/css-color-5/#color-mix",
275-
"stage": -1,
293+
"specification": "https://www.w3.org/TR/css-color-5/#color-mix",
294+
"stage": 2,
276295
"browser_support": {},
277296
"example": "p {\n color: color-mix(in lch, purple 50%, plum 50%);\n}",
278297
"polyfills": [],
@@ -524,13 +543,13 @@
524543
"specification": "https://www.w3.org/TR/selectors-4/#focus-visible-pseudo",
525544
"stage": 2,
526545
"browser_support": {
527-
"chrome": "67",
528-
"and_chr": "67",
529-
"edge": "79",
546+
"chrome": "86",
547+
"and_chr": "86",
548+
"edge": "86",
530549
"firefox": "85",
531550
"and_ff": "85",
532-
"opera": "54",
533-
"op_mob": "48",
551+
"opera": "72",
552+
"op_mob": "61",
534553
"samsung": "14.0",
535554
"android": "86"
536555
},
@@ -742,7 +761,7 @@
742761
"link": "https://github.com/csstools/postcss-plugins/tree/main/experimental/css-has-pseudo"
743762
}
744763
],
745-
"vendors_implementations": 0
764+
"vendors_implementations": 1
746765
},
747766
{
748767
"id": "hexadecimal-alpha-notation",
@@ -821,7 +840,7 @@
821840
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit"
822841
}
823842
],
824-
"vendors_implementations": 1
843+
"vendors_implementations": 2
825844
},
826845
{
827846
"id": "image-set-function",
@@ -1079,14 +1098,14 @@
10791098
"description": "Functions that allow colors to be expressed in OKLab and OKLCH.",
10801099
"specification": "https://www.w3.org/TR/css-color-4/#specifying-oklab-oklch",
10811100
"stage": 2,
1101+
"browser_support": {},
10821102
"example": "p {\n color: oklab(72.322% -0.0465 -0.1150);\n color: oklch(72.322% 0.12403 247.996);\n}",
10831103
"polyfills": [
10841104
{
10851105
"type": "PostCSS Plugin",
10861106
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function"
10871107
}
10881108
],
1089-
"browser_support": {},
10901109
"vendors_implementations": 0
10911110
},
10921111
{

cssdb.mjs

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,28 @@ export default [
118118
],
119119
"vendors_implementations": 1
120120
},
121+
{
122+
"id": "cascade-layers",
123+
"title": "CSS Cascade Layers",
124+
"description": "The `@layer` at-rule allows authors to explicitly layer their styles in the cascade, before specificity and order of appearance are considered.",
125+
"specification": "https://www.w3.org/TR/css-cascade-5/#layering",
126+
"stage": 2,
127+
"browser_support": {
128+
"edge": "99",
129+
"firefox": "97",
130+
"chrome": "99",
131+
"safari": "15.4",
132+
"ios_saf": "15.4",
133+
"android": "99",
134+
"and_chr": "99"
135+
},
136+
"docs": {
137+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/@layer"
138+
},
139+
"example": "/* Un-layered styles have the highest priority */\na {\n color: mediumvioletred;\n}\n\n@layer defaults {\n a { color: maroon; }\n}",
140+
"polyfills": [],
141+
"vendors_implementations": 3
142+
},
121143
{
122144
"id": "case-insensitive-attributes",
123145
"title": "Case-Insensitive Attributes",
@@ -206,16 +228,13 @@ export default [
206228
"description": "A function for choosing the color that contrasts the most.",
207229
"specification": "https://www.w3.org/TR/css-color-5/#colorcontrast",
208230
"stage": 2,
209-
"browser_support": {
210-
"safari": "15",
211-
"ios_saf": "15"
212-
},
231+
"browser_support": {},
213232
"docs": {
214233
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-contrast()"
215234
},
216235
"example": "p {\n color: color-contrast(wheat vs tan, sienna, var(--myAccent), #d2691e);\n}",
217236
"polyfills": [],
218-
"vendors_implementations": 1
237+
"vendors_implementations": 0
219238
},
220239
{
221240
"id": "color-function",
@@ -271,8 +290,8 @@ export default [
271290
"id": "color-mix",
272291
"title": "`color-mix()` Function",
273292
"description": "A function for mixing colors",
274-
"specification": "https://drafts.csswg.org/css-color-5/#color-mix",
275-
"stage": -1,
293+
"specification": "https://www.w3.org/TR/css-color-5/#color-mix",
294+
"stage": 2,
276295
"browser_support": {},
277296
"example": "p {\n color: color-mix(in lch, purple 50%, plum 50%);\n}",
278297
"polyfills": [],
@@ -524,13 +543,13 @@ export default [
524543
"specification": "https://www.w3.org/TR/selectors-4/#focus-visible-pseudo",
525544
"stage": 2,
526545
"browser_support": {
527-
"chrome": "67",
528-
"and_chr": "67",
529-
"edge": "79",
546+
"chrome": "86",
547+
"and_chr": "86",
548+
"edge": "86",
530549
"firefox": "85",
531550
"and_ff": "85",
532-
"opera": "54",
533-
"op_mob": "48",
551+
"opera": "72",
552+
"op_mob": "61",
534553
"samsung": "14.0",
535554
"android": "86"
536555
},
@@ -742,7 +761,7 @@ export default [
742761
"link": "https://github.com/csstools/postcss-plugins/tree/main/experimental/css-has-pseudo"
743762
}
744763
],
745-
"vendors_implementations": 0
764+
"vendors_implementations": 1
746765
},
747766
{
748767
"id": "hexadecimal-alpha-notation",
@@ -821,7 +840,7 @@ export default [
821840
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit"
822841
}
823842
],
824-
"vendors_implementations": 1
843+
"vendors_implementations": 2
825844
},
826845
{
827846
"id": "image-set-function",
@@ -1079,14 +1098,14 @@ export default [
10791098
"description": "Functions that allow colors to be expressed in OKLab and OKLCH.",
10801099
"specification": "https://www.w3.org/TR/css-color-4/#specifying-oklab-oklch",
10811100
"stage": 2,
1101+
"browser_support": {},
10821102
"example": "p {\n color: oklab(72.322% -0.0465 -0.1150);\n color: oklch(72.322% 0.12403 247.996);\n}",
10831103
"polyfills": [
10841104
{
10851105
"type": "PostCSS Plugin",
10861106
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function"
10871107
}
10881108
],
1089-
"browser_support": {},
10901109
"vendors_implementations": 0
10911110
},
10921111
{

cssdb.settings.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,20 @@
8080
}
8181
]
8282
},
83+
{
84+
"id": "cascade-layers",
85+
"title": "CSS Cascade Layers",
86+
"description": "The `@layer` at-rule allows authors to explicitly layer their styles in the cascade, before specificity and order of appearance are considered.",
87+
"specification": "https://www.w3.org/TR/css-cascade-5/#layering",
88+
"stage": 2,
89+
"caniuse": "css-cascade-layers",
90+
"browser_support": {},
91+
"docs": {
92+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/@layer"
93+
},
94+
"example": "/* Un-layered styles have the highest priority */\na {\n color: mediumvioletred;\n}\n\n@layer defaults {\n a { color: maroon; }\n}",
95+
"polyfills": []
96+
},
8397
{
8498
"id": "case-insensitive-attributes",
8599
"title": "Case-Insensitive Attributes",
@@ -186,8 +200,11 @@
186200
"id": "color-mix",
187201
"title": "`color-mix()` Function",
188202
"description": "A function for mixing colors",
189-
"specification": "https://drafts.csswg.org/css-color-5/#color-mix",
190-
"stage": -1,
203+
"specification": "https://www.w3.org/TR/css-color-5/#color-mix",
204+
"stage": 2,
205+
"mdn_path": [
206+
"css.types.color['color-mix']"
207+
],
191208
"browser_support": {},
192209
"example": "p {\n color: color-mix(in lch, purple 50%, plum 50%);\n}",
193210
"polyfills": []
@@ -795,6 +812,7 @@
795812
"description": "Functions that allow colors to be expressed in OKLab and OKLCH.",
796813
"specification": "https://www.w3.org/TR/css-color-4/#specifying-oklab-oklch",
797814
"stage": 2,
815+
"browser_support": {},
798816
"example": "p {\n color: oklab(72.322% -0.0465 -0.1150);\n color: oklch(72.322% 0.12403 247.996);\n}",
799817
"polyfills": [
800818
{

0 commit comments

Comments
 (0)