Skip to content

Commit 4a09738

Browse files
authored
content-alt-text (#405)
* content-alt-text * add changelog
1 parent 250ffea commit 4a09738

File tree

6 files changed

+285
-195
lines changed

6 files changed

+285
-195
lines changed

CHANGELOG.md

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

3+
### 8.1.0 (Jul 7, 2024)
4+
5+
- Added `content-alt-text`
6+
- Updated `@mdn/browser-compat-data` to `5.5.37` (patch)
7+
38
### 8.0.2 (May 23, 2024)
49

510
- Updated `@mdn/browser-compat-data` to `5.5.29` (patch)

cssdb.json

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"samsung": "21.0"
139139
},
140140
"docs": {
141-
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/calc-constant"
141+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/calc-keyword"
142142
},
143143
"example": "p {\n font-size: calc(pow(e, pi) * 1rem);\n}",
144144
"interoperable_at": 1686009600,
@@ -394,6 +394,39 @@
394394
"vendors_implementations": 3,
395395
"web-feature": "container-queries"
396396
},
397+
{
398+
"id": "content-alt-text",
399+
"title": "Alt text for `content`",
400+
"description": "Syntax that allows setting alternative text",
401+
"specification": "https://drafts.csswg.org/css-content/#content-property",
402+
"stage": 2,
403+
"browser_support": {
404+
"and_chr": "77",
405+
"and_ff": "128",
406+
"android": "77",
407+
"chrome": "77",
408+
"edge": "79",
409+
"firefox": "128",
410+
"ios_saf": "17.4",
411+
"oculus": "7.0",
412+
"op_mob": "55",
413+
"opera": "64",
414+
"safari": "17.4",
415+
"samsung": "12.0"
416+
},
417+
"docs": {
418+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/content#adding_an_image_with_alternative_text"
419+
},
420+
"example": ".element {\n content: url(tree.jpg) / \"image with a tree\";\n}",
421+
"interoperable_at": 1720483200,
422+
"polyfills": [
423+
{
424+
"type": "PostCSS Plugin",
425+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-content-alt-text"
426+
}
427+
],
428+
"vendors_implementations": 3
429+
},
397430
{
398431
"id": "contrast-color-function",
399432
"title": "`contrast-color()` Function",

cssdb.mjs

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default [
138138
"samsung": "21.0"
139139
},
140140
"docs": {
141-
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/calc-constant"
141+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/calc-keyword"
142142
},
143143
"example": "p {\n font-size: calc(pow(e, pi) * 1rem);\n}",
144144
"interoperable_at": 1686009600,
@@ -394,6 +394,39 @@ export default [
394394
"vendors_implementations": 3,
395395
"web-feature": "container-queries"
396396
},
397+
{
398+
"id": "content-alt-text",
399+
"title": "Alt text for `content`",
400+
"description": "Syntax that allows setting alternative text",
401+
"specification": "https://drafts.csswg.org/css-content/#content-property",
402+
"stage": 2,
403+
"browser_support": {
404+
"and_chr": "77",
405+
"and_ff": "128",
406+
"android": "77",
407+
"chrome": "77",
408+
"edge": "79",
409+
"firefox": "128",
410+
"ios_saf": "17.4",
411+
"oculus": "7.0",
412+
"op_mob": "55",
413+
"opera": "64",
414+
"safari": "17.4",
415+
"samsung": "12.0"
416+
},
417+
"docs": {
418+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/content#adding_an_image_with_alternative_text"
419+
},
420+
"example": ".element {\n content: url(tree.jpg) / \"image with a tree\";\n}",
421+
"interoperable_at": 1720483200,
422+
"polyfills": [
423+
{
424+
"type": "PostCSS Plugin",
425+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-content-alt-text"
426+
}
427+
],
428+
"vendors_implementations": 3
429+
},
397430
{
398431
"id": "contrast-color-function",
399432
"title": "`contrast-color()` Function",

cssdb.settings.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"stage": 2,
9898
"browser_support": {},
9999
"docs": {
100-
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/calc-constant"
100+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/calc-keyword"
101101
},
102102
"example": "p {\n font-size: calc(pow(e, pi) * 1rem);\n}",
103103
"mdn_path": [
@@ -266,6 +266,25 @@
266266
}
267267
]
268268
},
269+
{
270+
"id": "content-alt-text",
271+
"title": "Alt text for `content`",
272+
"description": "Syntax that allows setting alternative text",
273+
"specification": "https://drafts.csswg.org/css-content/#content-property",
274+
"stage": 2,
275+
"browser_support": {},
276+
"docs": {
277+
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/content#adding_an_image_with_alternative_text"
278+
},
279+
"example": ".element {\n content: url(tree.jpg) / \"image with a tree\";\n}",
280+
"polyfills": [
281+
{
282+
"type": "PostCSS Plugin",
283+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-content-alt-text"
284+
}
285+
],
286+
"mdn_path": "css.properties.content.alt_text"
287+
},
269288
{
270289
"id": "contrast-color-function",
271290
"title": "`contrast-color()` Function",

0 commit comments

Comments
 (0)