Skip to content

add some form of randomness to layouts w/ css random() and/or random-item()? #238

Description

@jsnkuhn

CSS is getting a random() and random-item() functions and it seems like it might be appropriate to add some form of randomness to the randomizer layouts. Not sure exactly what form this would take. Safari supports random() already. And chrome has it in canary behind a flag but the feature page says it's in "prepare to ship" stage (https://chromestatus.com/feature/5324559251275776).

random-item() has no browser support yet.

Both would require OBS to update their inbuilt browser source version of chromium... which hasn't happened in a long time so no rush.

Did a little playing around with random() here:
https://codepen.io/collection/gPxpaq

Webkit blog:
https://webkit.org/blog/17285/rolling-the-dice-with-css-random/

spec:
https://www.w3.org/TR/css-values-5/#randomness

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions