Skip to content

css.types.random - Add support data for random() #28736

@romainmenke

Description

@romainmenke

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Values_and_units/Using_math_functions#advanced_css_math_functions

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

I expected docs and compat data for random() in CSS.

Supported from Safari 26.2

Did you test this? If so, how?

https://codepen.io/jdatapple/pen/YPyELeV?editors=1100

animation: fade-in random(2s, 5s);

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://webkit.org/blog/17640/webkit-features-for-safari-26-2/#css

The random() function lets you include a randomly generated value from a specified range in your calculations. For example, random(0, 100, 2) will choose an even number between 0 and 100, while random(0turn, 1turn) will be a fraction of a turn — basically, any decimal between 0 and 360 degrees. Learn all about what the CSS random function can do in our article, Rolling the dice with CSS random().

Do you have anything more you want to share?

No response

MDN URL

No response

MDN metadata

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:cssCompat data for CSS features. https://developer.mozilla.org/docs/Web/CSS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions