# CSS Random

**URL:** <https://discourse.mozilla.org/t/css-random/149048>\
**Category:** Firefox Development\
**Created:** [July 27, 2026, 12:51pm UTC](https://discourse.mozilla.org/t/css-random/149048 "2026-07-27T12:51:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noah\_S](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/noah_s/32/78106_2.png) [@Noah\_S](https://discourse.mozilla.org/u/Noah_S)\
**Post date:** [July 27, 2026, 12:51pm UTC](https://discourse.mozilla.org/t/css-random/149048/1 "2026-07-27T12:51:07Z")

</div>

Are there any plans to implement support for the CSS random() function? I’m a web developer and it would make a browser game I’m making so much simpler.

---

<div class="post-metadata">

**Author:** ![bjh](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/bjh/32/21802_2.png) [@bjh](https://discourse.mozilla.org/u/bjh)\
**Post date:** [August 2, 2026, 8:15pm UTC](https://discourse.mozilla.org/t/css-random/149048/2 "2026-08-02T20:15:37Z")

</div>

Follow this bug:

> **[1836588 - (css-random) Implement CSS random() function](https://bugzilla.mozilla.org/show_bug.cgi?id=1836588)**
>
> NEW (nobody) in Core - CSS Parsing and Computation. Last updated 2026-07-06.

Two pieces of bad news: 1) It doesn’t appear to be supported by Chrome which means there’s less pressure for Mozilla to support it., 2) The bug is currently unassigned.

---

<div class="post-metadata">

**Author:** ![Alena\_Meara](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/alena_meara/32/72094_2.png) [@Alena\_Meara](https://discourse.mozilla.org/u/Alena_Meara)\
**Post date:** [October 28, 2026, 9:13am UTC](https://discourse.mozilla.org/t/css-random/149048/3 "2026-10-28T09:13:02Z")

</div>

Exactly, it is not supported by chrome

---

<div class="post-metadata">

**Author:** ![Lisa\_Lisa](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/lisa_lisa/32/78837_2.png) [@Lisa\_Lisa](https://discourse.mozilla.org/u/Lisa_Lisa)\
**Post date:** [October 28, 2026, 10:04am UTC](https://discourse.mozilla.org/t/css-random/149048/4 "2026-10-28T10:04:59Z")

</div>

> [@Noah\_S](#):
>
> Are there any plans to implement support for the CSS random() function? I’m a web developer and it would make a browser game I’m making so much simpler.

It would be great to see support for CSS `random()`! It could simplify a lot of game-related styling, especially when generating randomized positions[,](https://techcourses.pk/) sizes, rotations, or animation delays without relying on JavaScript for every variation.

However, browser support depends on the CSS specification and each browser engine’s implementation plans. Has there been any official discussion or an issue opened with the relevant browser team about implementation status?

In the meantime, JavaScript or CSS custom properties can be used to generate random values and pass them into styles, although native CSS support would make this much cleaner.

I’d also be interested to hear whether anyone knows of an active implementation proposal or a browser roadmap for this feature.
