Skip to content

Commit

Permalink
Add random-function
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Nov 11, 2024
1 parent 51cfd04 commit 4ca266c
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 11 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

### 8.2.0 (November 11, 2024)

- Added `random-function`

### 8.1.2 (October 14, 2024)

- Updated `@mdn/browser-compat-data` to `5.6.6` (minor)
Expand Down
11 changes: 11 additions & 0 deletions cssdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,17 @@
"interoperable_at": 1579046400,
"vendors_implementations": 3
},
{
"id": "random-function",
"title": "`random()` function",
"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",
"specification": "https://drafts.csswg.org/css-values-5/#random",
"stage": 2,
"browser_support": {},
"docs": {},
"example": "div {\n color: oklch(0.7, 0.2, random(120deg, 240deg));\n}",
"vendors_implementations": 0
},
{
"id": "read-only-write-pseudo-class",
"title": "`:read-only` and `:read-write` selectors",
Expand Down
11 changes: 11 additions & 0 deletions cssdb.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,17 @@ export default [
"interoperable_at": 1579046400,
"vendors_implementations": 3
},
{
"id": "random-function",
"title": "`random()` function",
"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",
"specification": "https://drafts.csswg.org/css-values-5/#random",
"stage": 2,
"browser_support": {},
"docs": {},
"example": "div {\n color: oklch(0.7, 0.2, random(120deg, 240deg));\n}",
"vendors_implementations": 0
},
{
"id": "read-only-write-pseudo-class",
"title": "`:read-only` and `:read-write` selectors",
Expand Down
11 changes: 11 additions & 0 deletions cssdb.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,17 @@
"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}",
"mdn_path": "css.at-rules.media.prefers-reduced-motion"
},
{
"id": "random-function",
"title": "`random()` function",
"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",
"specification": "https://drafts.csswg.org/css-values-5/#random",
"stage": 2,
"browser_support": {},
"docs": {},
"example": "div {\n color: oklch(0.7, 0.2, random(120deg, 240deg));\n}",
"mdn_path": []
},
{
"id": "read-only-write-pseudo-class",
"title": "`:read-only` and `:read-write` selectors",
Expand Down
25 changes: 14 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4ca266c

Please sign in to comment.