- From: Bramus via GitHub <noreply@w3.org>
- Date: Wed, 04 Feb 2026 08:14:42 +0000
- To: public-css-archive@w3.org
> `property-shared` should clearly mean "shared within a given property" and `element-shared` should mean "shared within a given element", the opposite of how they are above. Damn. ^_^ Yes, exactly! :) The one reason I can think of _against_ repurposing the `element-shared` keyword is that this has already shipped in Safari and Ladybird. Admittedly usage of CSS `random()`, I assume, is very low right now – I’ve only seen it in demos – so changing the behavior might actually work. --- > That is, this is how it should go: <img alt="Image" width="1246" height="726" src="https://private-user-images.githubusercontent.com/682840/544654887-e05ab5da-cf72-45e3-b1a2-4a4c2020f6fb.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzAxOTIyNDQsIm5iZiI6MTc3MDE5MTk0NCwicGF0aCI6Ii82ODI4NDAvNTQ0NjU0ODg3LWUwNWFiNWRhLWNmNzItNDVlMy1iMWEyLTRhNGMyMDIwZjZmYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMjA0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDIwNFQwNzU5MDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02NjNhNGZkOTgyNGZjNTUwZjAxY2E0NzIyOTdhOTNhODU3ZTg5Zjg5NDRhNDU4ZWQ3MGQ2YTAwYjRjYmVmNzhkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.uIjiYqDDeeBfYsYmd27ItylzflmTJsyqw75r5vlypSk"> To those not following: the image applied to the 100 squares/rectangles example from the spec (in which `width` and `height` are set to use `random()`) gives the following: - `random(10px, 200px)` = 100 random rectangles _(maximal randomness)_ - `random(property-shared, 10px, 200px)` = 100 identical rectangles - `random(element-shared, 10px, 200px)` = 100 random squares - `random(property-shared element-shared, 10px, 200px)` (or `random(--foo, 10px, 200px)`) = 100 identical squares _(minimal randomness)_ -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13132#issuecomment-3845988271 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 4 February 2026 08:14:42 UTC