Skip to content

Commit 4ca266c

Browse files
committed
Add random-function
1 parent 51cfd04 commit 4ca266c

File tree

5 files changed

+51
-11
lines changed

5 files changed

+51
-11
lines changed

CHANGELOG.md

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

3+
### 8.2.0 (November 11, 2024)
4+
5+
- Added `random-function`
6+
37
### 8.1.2 (October 14, 2024)
48

59
- Updated `@mdn/browser-compat-data` to `5.6.6` (minor)

cssdb.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,17 @@
18911891
"interoperable_at": 1579046400,
18921892
"vendors_implementations": 3
18931893
},
1894+
{
1895+
"id": "random-function",
1896+
"title": "`random()` function",
1897+
"description": "Represents a random value between a minimum and maximum value, drawn from a uniform distribution, optionally limiting the possible values to a step between those limits",
1898+
"specification": "https://drafts.csswg.org/css-values-5/#random",
1899+
"stage": 2,
1900+
"browser_support": {},
1901+
"docs": {},
1902+
"example": "div {\n color: oklch(0.7, 0.2, random(120deg, 240deg));\n}",
1903+
"vendors_implementations": 0
1904+
},
18941905
{
18951906
"id": "read-only-write-pseudo-class",
18961907
"title": "`:read-only` and `:read-write` selectors",

cssdb.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,17 @@ export default [
18911891
"interoperable_at": 1579046400,
18921892
"vendors_implementations": 3
18931893
},
1894+
{
1895+
"id": "random-function",
1896+
"title": "`random()` function",
1897+
"description": "Represents a random value between a minimum and maximum value, drawn from a uniform distribution, optionally limiting the possible values to a step between those limits",
1898+
"specification": "https://drafts.csswg.org/css-values-5/#random",
1899+
"stage": 2,
1900+
"browser_support": {},
1901+
"docs": {},
1902+
"example": "div {\n color: oklch(0.7, 0.2, random(120deg, 240deg));\n}",
1903+
"vendors_implementations": 0
1904+
},
18941905
{
18951906
"id": "read-only-write-pseudo-class",
18961907
"title": "`:read-only` and `:read-write` selectors",

cssdb.settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,17 @@
13961396
"example": ".animation {\n animation: vibrate 0.3s linear infinite both; \n}\n\n@media (prefers-reduced-motion: reduce) {\n .animation {\n animation: none;\n }\n}",
13971397
"mdn_path": "css.at-rules.media.prefers-reduced-motion"
13981398
},
1399+
{
1400+
"id": "random-function",
1401+
"title": "`random()` function",
1402+
"description": "Represents a random value between a minimum and maximum value, drawn from a uniform distribution, optionally limiting the possible values to a step between those limits",
1403+
"specification": "https://drafts.csswg.org/css-values-5/#random",
1404+
"stage": 2,
1405+
"browser_support": {},
1406+
"docs": {},
1407+
"example": "div {\n color: oklch(0.7, 0.2, random(120deg, 240deg));\n}",
1408+
"mdn_path": []
1409+
},
13991410
{
14001411
"id": "read-only-write-pseudo-class",
14011412
"title": "`:read-only` and `:read-write` selectors",

package-lock.json

Lines changed: 14 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)