Skip to content

Commit

Permalink
add light-dark function
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Feb 17, 2024
1 parent 43befaa commit 45e887c
Show file tree
Hide file tree
Showing 5 changed files with 247 additions and 172 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes to cssdb

### 7.11.0 (February 17, 2024)

- Added: Stage 2 `light-dark-function`

### 7.10.0 (December 27, 2023)

- Added `interoperable_at` to make it possible to calculate the Baseline status of a feature
Expand Down
23 changes: 23 additions & 0 deletions cssdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,29 @@
],
"vendors_implementations": 3
},
{
"id": "light-dark-function",
"title": "`light-dark()` Function",
"description": "React to the current used `color-scheme` value",
"specification": "https://drafts.csswg.org/css-color-5/#light-dark",
"stage": 2,
"browser_support": {
"and_ff": "120",
"chrome": "123",
"firefox": "120"
},
"docs": {
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/light-dark"
},
"example": "body {\n color: light-dark(cyan, magenta);\n}",
"polyfills": [
{
"type": "PostCSS Plugin",
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-light-dark-function"
}
],
"vendors_implementations": 1
},
{
"id": "logical-overflow",
"title": "Logical Overflow",
Expand Down
23 changes: 23 additions & 0 deletions cssdb.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,29 @@ export default [
],
"vendors_implementations": 3
},
{
"id": "light-dark-function",
"title": "`light-dark()` Function",
"description": "React to the current used `color-scheme` value",
"specification": "https://drafts.csswg.org/css-color-5/#light-dark",
"stage": 2,
"browser_support": {
"and_ff": "120",
"chrome": "123",
"firefox": "120"
},
"docs": {
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/light-dark"
},
"example": "body {\n color: light-dark(cyan, magenta);\n}",
"polyfills": [
{
"type": "PostCSS Plugin",
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-light-dark-function"
}
],
"vendors_implementations": 1
},
{
"id": "logical-overflow",
"title": "Logical Overflow",
Expand Down
19 changes: 19 additions & 0 deletions cssdb.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,25 @@
}
]
},
{
"id": "light-dark-function",
"title": "`light-dark()` Function",
"description": "React to the current used `color-scheme` value",
"specification": "https://drafts.csswg.org/css-color-5/#light-dark",
"stage": 2,
"browser_support": {},
"docs": {
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/light-dark"
},
"example": "body {\n color: light-dark(cyan, magenta);\n}",
"mdn_path": "css.types.color.light-dark",
"polyfills": [
{
"type": "PostCSS Plugin",
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-light-dark-function"
}
]
},
{
"id": "logical-overflow",
"title": "Logical Overflow",
Expand Down
Loading

0 comments on commit 45e887c

Please sign in to comment.