Can we PLEASEPLEASEPLEASE have this secure by default from the beginning?
I would bet someone is already working on it as we speak.
Introducing cryptography in the STANDARD for stylesheets adds complexity where it doesn't belong. Ultimately a browser vendor isn't responsible when a company sells insecure cryptography.
Adding crypto to CSS will bring us nearer to bitcoin mining in the CSS engine.
Is there a way to get reproducibility? In the same browser or across browsers? Even if it's not the default mode.
WPT test results: https://wpt.fyi/results/css/css-values?label=master&label=ex...
Only Safari supports it for now, it seems.
The term for this is “low-discrepancy sequences”, there have been a handful of HN posts on it over the years. I know I’m bikeshedding the API already before it even really exists, but for image presentation I think a lot of applications might actually find that more useful.
https://www.sitepoint.com/the-cicada-principle-and-why-it-ma...
https://lea.verou.me/blog/2020/07/the-cicada-principle-revis...
In this case you would use multiple transparent tiles of different star patterns (images, or gradient/clip-path tricks), each one a different prime number in size. It should work with anything you can tile and overlay in CSS though.
gherkinnn•5mo ago
Wonderful to see how CSS gets a usable random function before JS does.
noman-land•5mo ago
tsujp•5mo ago
akdev1l•5mo ago
The CSS function would be random(min, max)
Also the CSS function seems to take a number of steps, it is not immediately obvious to me how to do that with Math.random()
sdenton4•5mo ago
I imagine there's some deep ideological war over whether to add more programming functionality to css...
ameliaquining•5mo ago
ameliaquining•5mo ago
ballenf•5mo ago
gherkinnn•5mo ago