Skip to content

New CSS features #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 43 additions & 2 deletions cssdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@
"firefox": "97",
"chrome": "99",
"safari": "15.4",
"opera": "86",
"ios_saf": "15.4",
"android": "99",
"and_chr": "99"
"and_chr": "99",
"and_ff": "97"
},
"docs": {
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/@layer"
Expand Down Expand Up @@ -519,6 +521,22 @@
],
"vendors_implementations": 3
},
{
"id": "exponential-functions",
"title": "`pow()`, `sqrt()`, `hypot()`, `log()`, `exp()` exponential functions",
"description": "Compute various exponential functions with their arguments",
"specification": "https://www.w3.org/TR/css-values-4/#exponent-funcs",
"stage": 2,
"browser_support": {},
"example": "p {\n font-size: calc(pow(10, 12) * 1rem);\n font-size: calc(sqrt(100) * 1rem);\n font-size: calc(hypot(3, 4) * 1rem);\n font-size: calc(log(10) * 1rem);\n font-size: calc(exp(10) * 1rem);\n}",
"polyfills": [
{
"type": "PostCSS Plugin",
"link": "https://github.com/JLHwung/postcss-font-family-fangsong"
}
],
"vendors_implementations": 0
},
{
"id": "fangsong-font-family",
"title": "`fangsong` Font Family",
Expand Down Expand Up @@ -824,7 +842,7 @@
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function"
}
],
"vendors_implementations": 2
"vendors_implementations": 3
},
{
"id": "ic-unit",
Expand Down Expand Up @@ -1386,6 +1404,16 @@
],
"vendors_implementations": 3
},
{
"id": "stepped-value-functions",
"title": "`round()`, `mod()` and `rem()` functions",
"description": "The stepped-value functions, `round()`, `mod()`, and `rem()`, all transform a given value according to another \"step value\", in different ways.",
"specification": "https://www.w3.org/TR/css-values-4/#round-func",
"stage": 2,
"browser_support": {},
"example": "div {\n left: mod(18px, 5px);\n top: rem(18px, 5px);\n right: round(2.5px, 1px);\n bottom: round(up, 15px, 7px);\n}",
"vendors_implementations": 0
},
{
"id": "system-ui-font-family",
"title": "`system-ui` Font Family",
Expand Down Expand Up @@ -1419,6 +1447,19 @@
],
"vendors_implementations": 3
},
{
"id": "trigonometric-functions",
"title": "`sin()`, `cos()`, `tan()`, `asin()`, `acos()`, `atan()` and `atan2()` functions",
"description": "Functions to calculate varios basic trigonometric relationships",
"specification": "https://www.w3.org/TR/css-values-4/#trig-funcs",
"stage": 2,
"browser_support": {
"safari": "15.4",
"ios_saf": "15.4"
},
"example": "body {\n left: sin(45deg);\n left: cos(45deg);\n left: tan(45deg);\n left: asin(0.5);\n left: acos(0.5);\n left: atan(10);\n left: atan2(-1, 1);\n}",
"vendors_implementations": 1
},
{
"id": "unset-value",
"title": "`unset` Keyword",
Expand Down
45 changes: 43 additions & 2 deletions cssdb.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ export default [
"firefox": "97",
"chrome": "99",
"safari": "15.4",
"opera": "86",
"ios_saf": "15.4",
"android": "99",
"and_chr": "99"
"and_chr": "99",
"and_ff": "97"
},
"docs": {
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/@layer"
Expand Down Expand Up @@ -519,6 +521,22 @@ export default [
],
"vendors_implementations": 3
},
{
"id": "exponential-functions",
"title": "`pow()`, `sqrt()`, `hypot()`, `log()`, `exp()` exponential functions",
"description": "Compute various exponential functions with their arguments",
"specification": "https://www.w3.org/TR/css-values-4/#exponent-funcs",
"stage": 2,
"browser_support": {},
"example": "p {\n font-size: calc(pow(10, 12) * 1rem);\n font-size: calc(sqrt(100) * 1rem);\n font-size: calc(hypot(3, 4) * 1rem);\n font-size: calc(log(10) * 1rem);\n font-size: calc(exp(10) * 1rem);\n}",
"polyfills": [
{
"type": "PostCSS Plugin",
"link": "https://github.com/JLHwung/postcss-font-family-fangsong"
}
],
"vendors_implementations": 0
},
{
"id": "fangsong-font-family",
"title": "`fangsong` Font Family",
Expand Down Expand Up @@ -824,7 +842,7 @@ export default [
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function"
}
],
"vendors_implementations": 2
"vendors_implementations": 3
},
{
"id": "ic-unit",
Expand Down Expand Up @@ -1386,6 +1404,16 @@ export default [
],
"vendors_implementations": 3
},
{
"id": "stepped-value-functions",
"title": "`round()`, `mod()` and `rem()` functions",
"description": "The stepped-value functions, `round()`, `mod()`, and `rem()`, all transform a given value according to another \"step value\", in different ways.",
"specification": "https://www.w3.org/TR/css-values-4/#round-func",
"stage": 2,
"browser_support": {},
"example": "div {\n left: mod(18px, 5px);\n top: rem(18px, 5px);\n right: round(2.5px, 1px);\n bottom: round(up, 15px, 7px);\n}",
"vendors_implementations": 0
},
{
"id": "system-ui-font-family",
"title": "`system-ui` Font Family",
Expand Down Expand Up @@ -1419,6 +1447,19 @@ export default [
],
"vendors_implementations": 3
},
{
"id": "trigonometric-functions",
"title": "`sin()`, `cos()`, `tan()`, `asin()`, `acos()`, `atan()` and `atan2()` functions",
"description": "Functions to calculate varios basic trigonometric relationships",
"specification": "https://www.w3.org/TR/css-values-4/#trig-funcs",
"stage": 2,
"browser_support": {
"safari": "15.4",
"ios_saf": "15.4"
},
"example": "body {\n left: sin(45deg);\n left: cos(45deg);\n left: tan(45deg);\n left: asin(0.5);\n left: acos(0.5);\n left: atan(10);\n left: atan2(-1, 1);\n}",
"vendors_implementations": 1
},
{
"id": "unset-value",
"title": "`unset` Keyword",
Expand Down
48 changes: 48 additions & 0 deletions cssdb.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,15 @@
}
]
},
{
"id": "exponential-functions",
"title": "`pow()`, `sqrt()`, `hypot()`, `log()`, `exp()` exponential functions",
"description": "Compute various exponential functions with their arguments",
"specification": "https://www.w3.org/TR/css-values-4/#exponent-funcs",
"stage": 2,
"browser_support": {},
"example": "p {\n font-size: calc(pow(10, 12) * 1rem);\n font-size: calc(sqrt(100) * 1rem);\n font-size: calc(hypot(3, 4) * 1rem);\n font-size: calc(log(10) * 1rem);\n font-size: calc(exp(10) * 1rem);\n}"
},
{
"id": "fangsong-font-family",
"title": "`fangsong` Font Family",
Expand Down Expand Up @@ -809,6 +818,15 @@
}
]
},
{
"id": "calc-constants",
"title": "`e`, `pi`, `infinity`, `-infinity` and `NaN` constants for calculation",
"description": "Constants for calculation simplification",
"specification": "https://www.w3.org/TR/css-values-4/#calc-constants",
"stage": 2,
"browser_support": {},
"example": "p {\n font-size: calc(pow(e, pi) * 1rem);\n}"
},
{
"id": "oklab-function",
"title": "`oklab` and `oklch` color functions",
Expand Down Expand Up @@ -985,6 +1003,24 @@
}
]
},
{
"id": "sign-functions",
"title": "`abs()` and `sign()` functions",
"description": "The sign-related functions—abs() and sign()—compute various functions related to the sign of their argument",
"specification": "https://www.w3.org/TR/css-values-4/#sign-funcs",
"stage": 2,
"browser_support": {},
"example": "div {\n order: abs(-10);\n order: sign(-10);\n}"
},
{
"id": "stepped-value-functions",
"title": "`round()`, `mod()` and `rem()` functions",
"description": "The stepped-value functions, `round()`, `mod()`, and `rem()`, all transform a given value according to another \"step value\", in different ways",
"specification": "https://www.w3.org/TR/css-values-4/#round-func",
"stage": 2,
"browser_support": {},
"example": "div {\n left: mod(18px, 5px);\n top: rem(18px, 5px);\n right: round(2.5px, 1px);\n bottom: round(up, 15px, 7px);\n}"
},
{
"id": "system-ui-font-family",
"title": "`system-ui` Font Family",
Expand All @@ -1004,6 +1040,18 @@
}
]
},
{
"id": "trigonometric-functions",
"title": "`sin()`, `cos()`, `tan()`, `asin()`, `acos()`, `atan()` and `atan2()` functions",
"description": "Functions to calculate varios basic trigonometric relationships",
"specification": "https://www.w3.org/TR/css-values-4/#trig-funcs",
"stage": 2,
"browser_support": {
"safari": "15.4",
"ios_saf": "15.4"
},
"example": "body {\n left: sin(45deg);\n left: cos(45deg);\n left: tan(45deg);\n left: asin(0.5);\n left: acos(0.5);\n left: atan(10);\n left: atan2(-1, 1);\n}"
},
{
"id": "unset-value",
"title": "`unset` Keyword",
Expand Down
Loading