Repository navigation
Implement random() function, enabled by default - #520
Merged
Merged
Conversation
mrobinson
approved these changes
Nov 11, 2026
Loirooriol
force-pushed
the
enable-random
branch
from
November 13, 2026 22:22
84e182a to
426f333
Compare
layout.css.random.enabled pref by defaultrandom() function, enabled by default
Enable the `layout.css.random.enabled` pref by default, and add the required logic so that it works correctly. Firefox is shipping it: https://bugzil.la/2072252 Signed-off-by: Oriol Brufau <[email protected]>
Loirooriol
force-pushed
the
enable-random
branch
from
November 13, 2026 22:26
426f333 to
010d534
Compare
Loirooriol
marked this pull request as ready for review
November 14, 2026 08:53
kvnloo
pushed a commit
to kvnloo/servo
that referenced
this pull request
Nov 14, 2026
Bumps Stylo to servo/stylo#520 We will now have to provide Stylo a document-scoped 128-bit hashing key for `random()` to work correctly. Testing: Various tests improve. `/css/css-values/random-in-media.tentative.html` fails like in Firefox. Signed-off-by: Oriol Brufau <[email protected]>
aphrody-dev
pushed a commit
to aphrody-labs/browser
that referenced
this pull request
Nov 16, 2026
Bumps Stylo to servo/stylo#520 We will now have to provide Stylo a document-scoped 128-bit hashing key for `random()` to work correctly. Testing: Various tests improve. `/css/css-values/random-in-media.tentative.html` fails like in Firefox. Signed-off-by: Oriol Brufau <[email protected]>
staging-devin-ai-integration Bot
pushed a commit
to DioxusLabs/blitz
that referenced
this pull request
Nov 28, 2026
- Handle DisplayOutside::InternalRuby and the ruby/webkit-box DisplayInside variants, now compiled for Servo (servo/stylo#539) - Map the modern AlignmentBaseline values, now compiled for Servo behind layout.css.baseline-metric.modern.enabled (servo/stylo#535) - Pass a per-document random() hasher key to Device::new (servo/stylo#520) - Fill the new prefers-contrast/-reduced-motion/-reduced-transparency MediaData fields with NoPreference (servo/stylo#528)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable the
layout.css.random.enabledpref by default, and add the required logic so that it works correctly.Firefox is shipping it: https://bugzil.la/2072252
Servo PR: servo/servo#49830
Fixes: #500