Skip to content

stylo: Implement random() function, enabled by default - #49830

Merged
Loirooriol merged 1 commit into
servo:mainfrom
Loirooriol:enable-random
Nov 14, 2026
Merged

Loirooriol merged 1 commit into
servo:mainfrom
Loirooriol:enable-random

Conversation

@Loirooriol

@Loirooriol Loirooriol commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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.

@Loirooriol Loirooriol added the T-linux-wpt Do a try run of the WPT label Nov 11, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Nov 11, 2026
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#43066746592) for Linux (WPT)

@github-actions

Copy link
Copy Markdown

Test results for linux-wpt from try job (#43066746592):

Flaky unexpected result (17)
  • CRASH [expected OK] /IndexedDB/idbkeyrange.any.worker.html
  • OK /IndexedDB/idbtransaction-oncomplete.any.sharedworker.html (#45911)
    • FAIL [expected PASS] subtest: IDBTransaction - complete event

      assert_array_equals: lengths differ, expected array ["upgradeneeded", "complete", "success", "opencursor"] length 4, got ["upgradeneeded", "complete", "success"] length 3
      

  • OK /fetch/api/basic/split-byte-order-mark.any.html
    • FAIL [expected PASS] subtest: text() does not strip a UTF-8 byte order mark in a later chunk

      promise_test: Unhandled rejection with value: object "TypeError: Network error: HTTP failure: client error (SendRequest)"
      

  • OK /fetch/content-disposition/multiple-content-disposition.tentative.any.html (#49234)
    • FAIL [expected PASS] subtest: HTTP/1.1: differing duplicate Content-Disposition headers are combined

      promise_test: Unhandled rejection with value: object "TypeError: Network error: HTTP failure: client error (SendRequest)"
      

  • ERROR [expected OK] /focus/focus-event-after-switching-iframes.sub.html (#40368)
  • OK /html/browsers/browsing-the-web/navigating-across-documents/005.html (#27062)
    • PASS [expected FAIL] subtest: Link with onclick navigation and href navigation
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html (#20768)
    • PASS [expected FAIL] subtest: Tests that a fragment navigation in the unload handler will not block the initial navigation
  • OK /infrastructure/testdriver/click_iframe.html (#47688)
    • FAIL [expected PASS] subtest: TestDriver click on a document in an iframe

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • FAIL [expected PASS] /mathml/presentation-markup/operators/mo-single-char-and-children.html (#49318)
  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html
    • NOTRUN [expected PASS] subtest: touch two-finger pan on 'touch-action: pan-x pan-y'
    • NOTRUN [expected FAIL] subtest: touch two-finger pan on 'touch-action: pinch-zoom'
  • OK /trusted-types/trusted-types-navigation.html?21-25
    • FAIL [expected PASS] subtest: Navigate a window via form-submission with javascript:-urls in enforcing mode.

      promise_test: Unhandled rejection with value: "Unexpected message received: {\"type\":\"DOMContentLoaded\",\"uri\":\"http://web-platform.test:8000/trusted-types/support/navigation-support.html?area=1&defaultpolicy=make-invalid&navigationattempted=1&continue=1\"}"
      

  • OK /upgrade-insecure-requests/gen/sharedworker-classic-data.meta/upgrade/websocket.https.html
    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for websocket to cross-ws-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for websocket to same-ws-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

  • OK /upgrade-insecure-requests/gen/sharedworker-module-data.meta/unset/fetch.https.html
    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-http-downgrade origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-http-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-https origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-http-downgrade origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-http-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-https origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

  • OK /user-timing/measure_associated_with_navigation_timing.html (#47273)
    • FAIL [expected PASS] subtest: loadTime plus loadEventEnd to a mark "a" should equal to navigationStart to "a".

      assert_equals: loadTime plus loadEventEnd to a mark "a" should equal to navigationStart to "a". expected 18.7 but got 18.689999999999998
      

  • TIMEOUT [expected OK] /webdriver/tests/classic/dismiss_alert/dismiss.py (#39098)
  • TIMEOUT [expected OK] /webdriver/tests/classic/perform_actions/navigation.py (#38822)
  • OK /webdriver/tests/classic/perform_actions/pointer_mouse.py (#49662)
    • FAIL [expected PASS] subtest: test_down_closes_browsing_context[without up]

      Failed: DID NOT RAISE <class 'webdriver.error.NoSuchWindowException'>
      

Stable unexpected results that are known to be intermittent (9)
  • OK [expected TIMEOUT] /IndexedDB/idbcursor-request-source.any.worker.html (#48700)
    • PASS [expected TIMEOUT] subtest: IDBObjectStore::openCursor's request source must be the IDBObjectStore instance that opened the cursor
  • OK /beacon/beacon-basic.https.window.html (#41723)
    • FAIL [expected PASS] subtest: Payload size restriction should be accumulated: type = string

      assert_false: expected false got true
      

    • FAIL [expected PASS] subtest: Payload size restriction should be accumulated: type = arraybuffer

      assert_false: expected false got true
      

  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-stretch: '90%' should prefer '110% 140%' over '120% 130%'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

    • FAIL [expected PASS] subtest: Matching font-style: 'oblique 20deg' should prefer 'oblique 10deg' over 'oblique 0deg'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

  • TIMEOUT /dom/xpath-evaluation-detached-nodes.html (#49715)
    • FAIL [expected PASS] subtest: Axis traversal on detached attribute does not crash and returns empty node-set

      assert_equals: Expression "ancestor-or-self::*" on detached attribute should return empty node-set expected 0 but got 1
      

  • TIMEOUT [expected OK] /html/browsers/browsing-the-web/navigating-across-documents/cross-origin-top-navigation-with-user-activation-in-parent.window.html (#48205)
    • TIMEOUT [expected FAIL] subtest: Cross-origin top navigation is blocked without user activation, even if the parent has user activation

      Test timed out
      

  • TIMEOUT /html/semantics/embedded-content/media-elements/preserves-pitch.html (#49303)
    • PASS [expected TIMEOUT] subtest: The default playbackRate should not affect pitch
    • PASS [expected NOTRUN] subtest: The default playbackRate should not affect pitch, even with preservesPitch=false
    • TIMEOUT [expected NOTRUN] subtest: Speed-ups should not change the pitch when preservesPitch=true

      Test timed out
      

  • OK /html/webappapis/user-prompts/print-during-unload.html (#35944)
    • FAIL [expected PASS] subtest: print() during unload

      assert_array_equals: expected property 1 to be "destination" but got "error: window.print is not a function" (expected array ["start", "destination"] got ["start", "error: window.print is not a function"])
      

  • PASS [expected FAIL] /mathml/presentation-markup/operators/mo-lspace-rspace-dynamic.html (#49168)
  • PASS [expected FAIL] /mathml/presentation-markup/operators/operator-dictionary-empty-and-three-chars.html (#49173)
Stable unexpected results (6)
  • OK /css/css-values/random-computed.tentative.html
    • PASS [expected FAIL] subtest: Property scale value 'random(1, 11)'
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo element-scoped, 2, 12)'
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo, 3, 13)'
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo, 4, 14)'
    • PASS [expected FAIL] subtest: Property scale value 'random(0, 10, 5)'
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo element-scoped, 10, 20, 5)'
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo, 20, 30, 5)'
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo, 30, 40, 5)'
    • PASS [expected FAIL] subtest: Property scale value 'random(100, 10)'
    • PASS [expected FAIL] subtest: Property scale value 'random(-10, -100)'
    • And 117 more unexpected results...
  • OK /css/css-values/random-in-animations.tentative.html
    • FAIL [expected PASS] subtest: CSS Transitions: property <--number> from [100] to [random(300, 100)] at (-0.5) should be [0]

      assert_equals: expected "0 " but got "300 "
      

    • PASS [expected FAIL] subtest: CSS Transitions: property <--number> from [100] to [random(300, 100)] at (1) should be [300]
    • PASS [expected FAIL] subtest: CSS Animations: property <--number> from [100] to [random(300, 100)] at (-0.5) should be [0]
    • PASS [expected FAIL] subtest: CSS Animations: property <--number> from [100] to [random(300, 100)] at (0.5) should be [200]
    • PASS [expected FAIL] subtest: CSS Animations: property <--number> from [100] to [random(300, 100)] at (1) should be [300]
    • PASS [expected FAIL] subtest: CSS Animations: property <--number> from [100] to [random(300, 100)] at (1.5) should be [400]
    • PASS [expected FAIL] subtest: CSS Transitions: property <font-weight> from [100] to [random(300, 100)] at (-0.5) should be [1]
    • PASS [expected FAIL] subtest: CSS Transitions: property <font-weight> from [100] to [random(300, 100)] at (0) should be [100]
    • PASS [expected FAIL] subtest: CSS Transitions: property <font-weight> from [100] to [random(300, 100)] at (0.5) should be [200]
    • PASS [expected FAIL] subtest: CSS Transitions: property <font-weight> from [100] to [random(300, 100)] at (1) should be [300]
    • And 11 more unexpected results...
  • OK /css/css-values/random-in-keyframe.html
    • PASS [expected FAIL] subtest: random() is not ignored in keyframe
  • OK /css/css-values/random-in-media.tentative.html
    • FAIL [expected PASS] subtest: Should be unknown: '(width > random(--foo, 10px, 30px))'

      assert_true: expected true got false
      

  • OK /css/css-values/random-serialize.tentative.html
    • PASS [expected FAIL] subtest: e.style['width'] = "random(0px, 100px)" should set the property value
    • PASS [expected FAIL] subtest: e.style['width'] = "random(fixed 0.5, 0px, 100px)" should set the property value
    • PASS [expected FAIL] subtest: e.style['height'] = "random(auto, 0px, 100px)" should set the property value
    • PASS [expected FAIL] subtest: e.style['width'] = "random(--foo, 0px, 100px)" should set the property value
    • PASS [expected FAIL] subtest: e.style['width'] = "random(--foo element-scoped, 0px, 100px)" should set the property value
    • PASS [expected FAIL] subtest: e.style['width'] = "random(element-scoped, 0px, 100px)" should set the property value
    • PASS [expected FAIL] subtest: e.style['font-size'] = "random(property-scoped, 0px, 100px)" should set the property value
    • PASS [expected FAIL] subtest: e.style['font-size'] = "random(--foo property-scoped, 0px, 100px)" should set the property value
    • PASS [expected FAIL] subtest: e.style['width'] = "random(property-index-scoped, 0px, 100px)" should set the property value
    • PASS [expected FAIL] subtest: e.style['width'] = "random(--foo property-index-scoped, 0px, 100px)" should set the property value
    • And 60 more unexpected results...
  • OK /css/css-values/random-unresolvable-argument.tentative.html
    • PASS [expected FAIL] subtest: random() with resolvable arguments produces a value within [min, max]

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#43066746592) failed!

@Loirooriol

Copy link
Copy Markdown
Contributor Author

OK, there is a problem here, it's always 0.5638:

<!DOCTYPE html>
<div style="background-color: black; height: 100px; opacity: random(--foo, 0, 1)"></div>
<script>console.log(getComputedStyle(document.querySelector("div")).opacity);</script>

Maybe we need to randomize the seed or something.

@Loirooriol Loirooriol changed the title stylo: Enable layout.css.random.enabled pref by default stylo: Implement random() function, enabled by default Nov 13, 2026
@Loirooriol Loirooriol added the T-linux-wpt Do a try run of the WPT label Nov 13, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Nov 13, 2026
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#43519746389) for Linux (WPT)

@codecov-commenter

Copy link
Copy Markdown

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@github-actions

Copy link
Copy Markdown

Test results for linux-wpt from try job (#43519746389):

Flaky unexpected result (20)
  • OK /_mozilla/input-events/mouse-text-selection-textarea-002.html
    • FAIL [expected PASS] subtest: Clicking in &lt;textarea&gt; should move the edit point even when selecting outside of the textarea

      assert_equals: expected 3 but got 5
      

  • OK /beacon/beacon-basic.https.window.html (#41723)
    • FAIL [expected PASS] subtest: Payload size restriction should be accumulated: type = string

      assert_false: expected false got true
      

  • FAIL [expected PASS] /css/css-backgrounds/background-size-041.html
  • OK /dom/nodes/moveBefore/iframe-document-preserve.window.html (#43152)
    • FAIL [expected PASS] subtest: moveBefore(): cross-origin iframe is preserved: remove new parent

      assert_equals: iframe does not fire a second load event expected 1 but got 0
      

    • FAIL [expected PASS] subtest: moveBefore(): cross-origin iframe is preserved: remove self

      assert_equals: iframe does not fire a second load event expected 1 but got 0
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html (#20768)
    • PASS [expected FAIL] subtest: Tests that a fragment navigation in the unload handler will not block the initial navigation
  • OK /html/browsers/browsing-the-web/navigating-across-documents/refresh/same-document-refresh.html (#34597)
    • FAIL [expected PASS] subtest: Same-Document Referrer from Refresh

      assert_equals: original page loads expected "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refresh-with-section.sub.html?url=%23section" but got "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refresh-with-section.sub.html?url=%23section#section"
      

  • TIMEOUT [expected OK] /html/browsers/windows/consume-user-activation/window-open-multi-global.html (#47399)
    • TIMEOUT [expected FAIL] subtest: window.open() and consuming user activation with multiple globals in play

      Test timed out
      

  • CRASH [expected FAIL] /html/semantics/interestfor/interestfor-plain-inline-element.tentative.html
  • TIMEOUT [expected OK] /html/user-activation/consumption-sameorigin.html
    • NOTRUN [expected PASS] subtest: Consumption test
  • TIMEOUT [expected OK] /html/user-activation/navigation-state-reset-sameorigin.html (#45151)
    • TIMEOUT [expected FAIL] subtest: Post-navigation state reset.

      Test timed out
      

  • OK /infrastructure/testdriver/click_iframe.html (#47688)
    • FAIL [expected PASS] subtest: TestDriver click on a document in an iframe

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • FAIL [expected PASS] /mathml/presentation-markup/operators/mo-form-dynamic-002.html (#49169)
  • PASS [expected FAIL] /mathml/presentation-markup/operators/operator-dictionary-empty-and-three-chars.html (#49173)
  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html
    • NOTRUN [expected PASS] subtest: touch two-finger pan on 'touch-action: pan-x pan-y'
    • NOTRUN [expected FAIL] subtest: touch two-finger pan on 'touch-action: pinch-zoom'
  • OK /sanitizer-api/sanitizer-inert-document.html (#45260)
    • FAIL [expected PASS] subtest: Test whether setHTML loads the image.

      promise_test: Unhandled rejection with value: "The server observed a request. It shouldn't have."
      

    • PASS [expected FAIL] subtest: Test whether setHTMLUnsafe loads the image.
  • OK /trusted-types/trusted-types-navigation.html?21-25
    • FAIL [expected PASS] subtest: Navigate a window via form-submission with javascript:-urls in enforcing mode.

      promise_test: Unhandled rejection with value: "Unexpected message received: {\"type\":\"DOMContentLoaded\",\"uri\":\"http://web-platform.test:8000/trusted-types/support/navigation-support.html?area=1&amp;defaultpolicy=make-invalid&amp;navigationattempted=1&amp;continue=1\"}"
      

  • OK /upgrade-insecure-requests/gen/sharedworker-module-data.meta/unset/fetch.https.html
    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-http-downgrade origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-http-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-https origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-http-downgrade origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-http-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-https origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

  • TIMEOUT [expected OK] /webdriver/tests/classic/perform_actions/navigation.py (#38822)
  • OK [expected TIMEOUT] /webstorage/localstorage-about-blank-3P-iframe-opens-3P-window.partitioned.html (#29053)
    • FAIL [expected TIMEOUT] subtest: StorageKey: test 3P about:blank window opened from a 3P iframe

      assert_true: about:blank window opened by 3P iframe does not inherit 3P iframe's StorageKey expected true got false
      

  • OK /webxr/xrSession_features_deviceSupport.https.html (#24357)
    • FAIL [expected PASS] subtest: Immersive XRSession requests with no supported device should reject

      assert_unreached: Should have rejected: undefined Reached unreachable code
      

Stable unexpected results that are known to be intermittent (12)
  • OK [expected TIMEOUT] /IndexedDB/idbcursor-request-source.any.worker.html (#48700)
    • PASS [expected TIMEOUT] subtest: IDBObjectStore::openCursor's request source must be the IDBObjectStore instance that opened the cursor
  • OK /css/CSS2/floats/float-in-block-in-inline-position-001.html (#49534)
    • PASS [expected FAIL] subtest: A line after a bordered block containing a float avoids it at the block's position (nested)
    • PASS [expected FAIL] subtest: A line after a bordered block containing a float avoids it at the block's position (sibling)
    • PASS [expected FAIL] subtest: The float lands in the same place whether the bordered block is nested in an inline box or a sibling of inline content
  • OK /css/CSS2/visudet/inline-block-baseline-with-block-in-inline-001.html (#49559)
    • FAIL [expected PASS] subtest: An inline-block whose last line box holds a block level box exports that line's baseline

      assert_equals: the text after the inline-block is aligned to the inline-block's last line box baseline expected 20 but got 18.35
      

  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-weight: '430' should prefer '500' over '400 425'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

  • TIMEOUT /dom/xpath-evaluation-detached-nodes.html (#49715)
    • FAIL [expected PASS] subtest: Axis traversal on detached attribute does not crash and returns empty node-set

      assert_equals: Expression "ancestor-or-self::*" on detached attribute should return empty node-set expected 0 but got 1
      

  • ERROR [expected OK] /focus/focus-event-after-switching-iframes.sub.html (#40368)
  • TIMEOUT /html/browsers/history/the-history-interface/001.html (#12580)
    • FAIL [expected PASS] subtest: traversing history must also traverse hash changes

      assert_equals: (this could cause other failures later on) expected "" but got "test"
      

  • TIMEOUT [expected PASS] /html/semantics/document-metadata/the-link-element/link-error-handler-triggers-abort-crash.html (#49503)
  • TIMEOUT /html/semantics/embedded-content/media-elements/preserves-pitch.html (#49303)
    • PASS [expected TIMEOUT] subtest: The default playbackRate should not affect pitch
    • PASS [expected NOTRUN] subtest: The default playbackRate should not affect pitch, even with preservesPitch=false
    • TIMEOUT [expected NOTRUN] subtest: Speed-ups should not change the pitch when preservesPitch=true

      Test timed out
      

  • PASS [expected FAIL] /mathml/presentation-markup/operators/mo-lspace-rspace-dynamic.html (#49168)
  • FAIL [expected PASS] /mathml/presentation-markup/operators/mo-single-char-and-children.html (#49318)
  • OK /preload/prefetch-document.html (#37210)
    • FAIL [expected PASS] subtest: different-site document prefetch with 'as=document' should not be consumed

      assert_equals: expected 2 but got 1
      

Stable unexpected results (1)
  • OK /css/css-values/random-computed.tentative.html
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo, 0, 1)' differs across documents
    • PASS [expected FAIL] subtest: Property scale value 'random(property-scoped, 0, 1)' differs across documents
    • PASS [expected FAIL] subtest: Property scale value 'random(property-index-scoped, 0, 1)' differs across documents
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo property-scoped, 0, 1)' differs across documents
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo property-index-scoped, 0, 1)' differs across documents
    • PASS [expected FAIL] subtest: Property scale value 'random(ua-scale, 0, 1)' differs across documents
    • PASS [expected FAIL] subtest: Property scale value 'random(ua-scale-1, 0, 1)' differs across documents
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo ua-scale, 0, 1)' differs across documents
    • PASS [expected FAIL] subtest: Property scale value 'random(--foo ua-scale-1, 0, 1)' differs across documents

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#43519746389) failed!

@Loirooriol
Loirooriol marked this pull request as ready for review November 14, 2026 08:54
@Loirooriol
Loirooriol requested a review from gterzian as a code owner November 14, 2026 08:54
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 14, 2026
@Loirooriol
Loirooriol enabled auto-merge November 14, 2026 08:55
@Loirooriol
Loirooriol added this pull request to the merge queue Nov 14, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 14, 2026
Merged via the queue into servo:main with commit 9e98ff8 Nov 14, 2026
35 checks passed
@Loirooriol
Loirooriol deleted the enable-random branch November 14, 2026 12:32
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 14, 2026
@servo-highfive

Copy link
Copy Markdown

Someone thinks this change could be added to the monthly blog post! To help with this, we need someone to answer the following questions: 😄

  1. Who is most impacted by this change: users, Servo developers, embedders, or some other group?
  2. What observable difference does this change make?
  3. What preferences (if any) need to be enabled to observe this difference?
  4. What (if any) specific URLs are affected?

If this change is part of a broader feature/project please make sure the PR description contains a Fixes: #12345 or Part of: #12345 issue reference.

Please add @servo-highfive monthly update answer when answering these questions so the bot notices your answer (or just quote this comment).

Thanks for helping us prepare the monthly blog post! ❤️

@Loirooriol

Copy link
Copy Markdown
Contributor Author

@servo-highfive monthly update answer

  1. Users
  2. Implements the CSS random() function
  3. No pref, enabled by default
  4. N/A

z11i pushed a commit to z11i/stylo that referenced this pull request Nov 15, 2026
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

Servo PR: servo/servo#49830

Fixes: servo#500

Signed-off-by: Oriol Brufau <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

monthly update S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants