Skip to content

script: Update selection paint ranges without relayout - #47579

Merged
SimonSapin merged 17 commits into
servo:mainfrom
SimonSapin:selection-change-without-relayout
Sep 1, 2026
Merged

SimonSapin merged 17 commits into
servo:mainfrom
SimonSapin:selection-change-without-relayout

Conversation

@SimonSapin

Copy link
Copy Markdown
Member

This unifies document selection and <textarea>/<input> selection in how they are represented between script and layout crates. There is no longer an Arc-based SharedSelection accessible to both. Instead, script goes through Node::layout_data a.k.a. BoxSlot to update the selection range in existing text runs when possible.

Testing: WPT should cover most observable behavior, but we may want some more verification that layout is indeed skipped
Fixes: #47392

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 27, 2026
@SimonSapin SimonSapin added the T-linux-wpt Do a try run of the WPT label Aug 27, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Aug 27, 2026
@SimonSapin SimonSapin added the T-linux-wpt Do a try run of the WPT label Aug 27, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Aug 27, 2026
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (31)
  • CRASH [expected OK] /IndexedDB/idb-explicit-commit-throw.any.worker.html
  • TIMEOUT [expected OK] /IndexedDB/idbcursor-continuePrimaryKey-exception-order.any.sharedworker.html
    • TIMEOUT [expected FAIL] subtest: InvalidStateError(deleted source) v.s. InvalidAccessError(incorrect source)

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: InvalidAccessError(incorrect source) v.s. InvalidStateError(iteration ongoing)

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: DataError(unset key)

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: DataError(unset primary key)

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: DataError(keys are lower then current one) in 'next' direction

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: DataError(keys are larger then current one) in 'prev' direction

      Test timed out
      

  • CRASH [expected OK] /_mozilla/mozilla/hit-test-pos-fixed.html
  • TIMEOUT [expected OK] /_mozilla/shadow-dom/getrootnode-in-deeply-nested-shadow.html
  • TIMEOUT [expected OK] /_webgl/conformance/extensions/oes-texture-float-linear.html
    • NOTRUN [expected PASS] subtest: Overall test
  • OK /_webgl/conformance/textures/misc/texture-upload-size.html (#21770)
    • FAIL [expected PASS] subtest: WebGL test #45

      assert_true: Texture was smaller than the expected size 2x2 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #47

      assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #49

      assert_true: Texture was smaller than the expected size 2x2 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #51

      assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
      

    • PASS [expected FAIL] subtest: WebGL test #53
    • PASS [expected FAIL] subtest: WebGL test #55
    • PASS [expected FAIL] subtest: WebGL test #57
    • PASS [expected FAIL] subtest: WebGL test #59
    • FAIL [expected PASS] subtest: WebGL test #61

      assert_true: Texture was smaller than the expected size 2x2 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #63

      assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
      

    • And 14 more unexpected results...
  • TIMEOUT [expected OK] /_webgl/conformance/uniforms/no-over-optimization-on-uniform-array-00.html
    • NOTRUN [expected PASS] subtest: Overall test
  • CRASH [expected OK] /_webgl/conformance/uniforms/no-over-optimization-on-uniform-array-14.html
  • CRASH [expected OK] /_webgl/conformance/uniforms/no-over-optimization-on-uniform-array-15.html
  • CRASH [expected OK] /_webgl/conformance2/wasm/readpixels-2gb-in-4gb-wasm-memory.html
  • FAIL [expected PASS] /css/css-backgrounds/background-size-042.html
  • OK /css/css-text-decor/parsing/text-decoration-inset-computed.html
    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0px 0px'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0.5em'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '-1em'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '-1ch -1ch'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '1px 2px'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '1ch -1ch'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value 'calc(1em / 4) calc(-1ch)'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value 'auto'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '10%'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • And 5 more unexpected results...
  • OK [expected ERROR] /css/selectors/invalidation/media-loading-pseudo-classes-in-has.sub.html
  • TIMEOUT [expected OK] /fetch/content-encoding/br/big-br-body.https.any.worker.html
    • TIMEOUT [expected PASS] subtest: large br data should be decompressed successfully

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: large br data should be decompressed successfully with byte stream
  • TIMEOUT [expected OK] /fetch/content-encoding/zstd/big-zstd-body.https.any.worker.html
    • TIMEOUT [expected PASS] subtest: large zstd data should be decompressed successfully

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: large zstd data should be decompressed successfully with byte stream
  • CRASH [expected OK] /html/browsers/browsing-the-web/navigating-across-documents/005.html (#27062)
  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-submit.html (#44028)
  • TIMEOUT /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/location-setter.html (#47571)
    • TIMEOUT [expected FAIL] subtest: href

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: search
    • NOTRUN [expected TIMEOUT] subtest: hash
  • TIMEOUT /html/semantics/embedded-content/media-elements/autoplay-default-permissions-policy.https.sub.html (#46805)
    • TIMEOUT [expected PASS] subtest: Default "autoplay" feature policy ["self"] allows the top-level document.

      Test timed out
      

    • PASS [expected TIMEOUT] subtest: Default "autoplay" feature policy ["self"] allows same-origin iframes.
  • OK /html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-reload-location-reload.html (#32595)
    • FAIL [expected PASS] subtest: Reloading iframe loading='lazy' before it is loaded: location.reload

      uncaught exception: Error: assert_equals: expected "http://web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/support/blank.htm?src" but got "about:blank"
      

  • OK /html/webappapis/dynamic-markup-insertion/opening-the-input-stream/location-set-and-document-open.html
    • FAIL [expected PASS] subtest: Location sets should cancel current navigation and prevent later document.open() from doing anything

      assert_equals: Should not have FAIL in our textContent expected "PASS" but got "FAIL"
      

  • ERROR [expected OK] /intersection-observer/v2/animated-opacity.html (#40827)
  • OK /mixed-content/tentative/autoupgrades/video-upgrade.https.sub.html (#41135)
    • FAIL [expected PASS] subtest: Video of other host autoupgraded

      assert_equals: Length. Other host expected 1 but got Infinity
      

  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html (#44693)
    • 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 /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
      

  • OK /resize-observer/observer-in-cross-origin-frame.sub.html
    • FAIL [expected PASS] subtest: Cross-origin observer responds to explicitly set physical size

      assert_equals: expected 200 but got 284
      

  • CRASH [expected OK] /trusted-types/navigate-to-javascript-url-001.html
  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?11-15 (#44834)
    • TIMEOUT [expected PASS] subtest: Navigate a window via area with javascript:-urls in report-only mode.

      Test timed out
      

  • OK /webdriver/tests/classic/dismiss_alert/dismiss.py (#39098)
    • ERROR [expected PASS] subtest: test_no_top_browsing_context

      setup error: webdriver.error.NoSuchWindowException: no such window (404): No such window
      

  • OK [expected TIMEOUT] /webdriver/tests/classic/perform_actions/navigation.py (#38822)
  • OK /webdriver/tests/classic/perform_actions/pointer_touch.py
    • FAIL [expected PASS] subtest: test_touch_pointer_in_shadow_tree[inner-open]

      AssertionError
      

Stable unexpected results that are known to be intermittent (23)
  • TIMEOUT [expected OK] /_mozilla/mozilla/window-resize-event.html (#36741)
    • TIMEOUT [expected PASS] subtest: Popup onresize event fires after resizeTo

      Test timed out
      

  • OK /beacon/beacon-basic.https.window.html (#41723)
    • PASS [expected FAIL] subtest: Payload size restriction should be accumulated: type = arraybuffer
    • PASS [expected FAIL] subtest: Payload size restriction should be accumulated: type = blob
  • OK /css/css-flexbox/text-as-flexitem-size-001.html (#47104)
    • PASS [expected FAIL] subtest: .flexbox &gt; div 1
    • PASS [expected FAIL] subtest: .flexbox &gt; div 2
    • PASS [expected FAIL] subtest: .flexbox &gt; div 5
    • PASS [expected FAIL] subtest: .flexbox &gt; div 8
    • PASS [expected FAIL] subtest: .flexbox &gt; div 11
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-style: 'normal' should prefer 'oblique 10deg 40deg' over 'oblique 20deg 30deg'

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

  • ERROR [expected TIMEOUT] /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=cross,allowed=wildcard,expect=400 (#47268)
  • ERROR [expected OK] /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=same,allowed=wildcard,expect=400 (#47268)
  • PASS [expected FAIL] /css/css-text-decor/text-underline-position-from-font-variable.html (#45615)
  • 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
      

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

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

  • TIMEOUT /fetch/metadata/generated/css-images.sub.tentative.html (#29047)
    • TIMEOUT [expected PASS] subtest: background-image sec-fetch-site - Not sent to non-trustworthy same-origin destination

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: background-image sec-fetch-site - Not sent to non-trustworthy same-site destination

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: background-image sec-fetch-site - Not sent to non-trustworthy cross-site destination

      Test timed out
      

  • 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/replace-before-load/a-click.html (#28697)
    • PASS [expected FAIL] subtest: aElement.click() before the load event must NOT replace
  • ERROR [expected CRASH] /html/browsers/history/the-location-interface/location_replace_session_history.html (#41896)
  • CRASH [expected OK] /html/browsers/origin/cross-origin-objects/cross-origin-objects.html (#47543)
  • OK /html/browsers/windows/browsing-context-names/duplicate-name-order.html (#34623)
    • PASS [expected FAIL] subtest: Duplicate name lookup order
  • OK [expected TIMEOUT] /html/semantics/embedded-content/media-elements/autoplay-disabled-by-permissions-policy.https.sub.html (#46012, #46804)
  • OK /pointerevents/pointerevent_change-touch-action-onpointerdown_touch.html (#46781)
    • FAIL [expected PASS] subtest: scroll should be received before the test finishes

      assert_true: scroll should be received before the test finishes expected true got false
      

  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?pen (#45536)
    • FAIL [expected PASS] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture to outer frame should not capture.

      assert_array_equals: Received events: innerFrame received pointerdown,innerFrame received pointermove,innerFrame received pointerup,innerFrame received lostpointercapture lengths differ, expected array ["innerFrame received pointerdown", "innerFrame received pointermove", "innerFrame received pointerup"] length 3, got ["innerFrame received pointerdown", "innerFrame received pointermove", "innerFrame received pointerup", "innerFrame received lostpointercapture"] length 4
      

  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?touch (#45445)
    • PASS [expected FAIL] subtest: Test touchpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.
  • OK /resource-timing/buffer-full-add-then-clear.html (#40819)
    • PASS [expected FAIL] subtest: Test that if the buffer is cleared after entries were added to the secondary buffer, those entries make it into the primary one
  • OK /resource-timing/test_resource_timing.https.html (#25216)
    • FAIL [expected PASS] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (script)

      assert_equals: expected 13.210000000000008 but got 13.21
      

    • PASS [expected FAIL] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (xmlhttprequest)
  • OK /sanitizer-api/sanitizer-inert-document.html (#45260)
    • PASS [expected FAIL] subtest: Test whether setHTML loads the image.
    • FAIL [expected PASS] subtest: Test whether setHTMLUnsafe loads the image.

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

  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?16-20 (#44835)
    • TIMEOUT [expected FAIL] subtest: Navigate a frame via area with javascript:-urls in report-only mode.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Navigate a frame via area with javascript:-urls w/ default policy in report-only mode.
  • OK /webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)
    • FAIL [expected PASS] subtest: buffer-stitching-1

      assert_approx_equals: Stitched sine-wave buffers at sample rate 44100 sample[16620] |-3.623247189550846e-29 - -0.8962811827659607| = 0.8962811827659607 &gt; 0.000090957 expected -0.8962811827659607 +/- 0.000090957 but got -3.623247189550846e-29
      

    • FAIL [expected PASS] subtest: buffer-stitching-2

      assert_approx_equals: Stitched sine-wave buffers at sample rate 43800 sample[38784] |-3.067354895419867e-29 - -0.24537639319896698| = 0.24537639319896698 &gt; 0.0038986 expected -0.24537639319896698 +/- 0.0038986 but got -3.067354895419867e-29
      

Stable unexpected results (25)
  • FAIL [expected PASS] /_mozilla/appearance/textarea-caret-following-linebreak-blank-line.html
  • FAIL [expected PASS] /_mozilla/css/input-empty-equiv.html
  • OK /_mozilla/input-events/mousedown-edit-point-textarea-002.html
    • FAIL [expected PASS] subtest: Clicking in the padding of a &lt;textara&gt; should move the edit point properly

      assert_equals: expected 6 but got 7
      

  • FAIL [expected PASS] /css/css-pseudo/highlight-custom-properties-dynamic-001.html
  • FAIL [expected PASS] /css/css-pseudo/selection-background-color-001.html
  • FAIL [expected PASS] /css/css-pseudo/selection-background-color-transparent.html
  • FAIL [expected PASS] /css/css-ui/caret-color-bar-shape-text-color.html
  • FAIL [expected PASS] /css/css-ui/caret-color-underscore-shape-text-color.html
  • FAIL [expected PASS] /fullscreen/rendering/exit-fullscreen-scroll-to-unscrollable-area-overflow-hidden.html
  • FAIL [expected PASS] /fullscreen/rendering/exit-fullscreen-scroll-to-unscrollable-area-overflow-x-hidden.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-001.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-002.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-003.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-004.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-005.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-006.html
  • OK /paint-timing/fcp-only/fcp-text-input.html
    • PASS [expected FAIL] subtest: Text input should become contentful when its value is non-empty
  • FAIL [expected PASS] /selection/caret/after-designMode-off.html
  • FAIL [expected PASS] /selection/caret/collapse-pre-linestart-1.html
  • FAIL [expected PASS] /selection/caret/collapse-pre-linestart-2.html
  • FAIL [expected PASS] /selection/collapse-common-ancestor-1.html
  • FAIL [expected PASS] /selection/collapse-common-ancestor-2.html
  • FAIL [expected PASS] /selection/collapse-common-ancestor-3.html
  • FAIL [expected PASS] /selection/selection-incremental-change-repaint.html
  • PASS [expected FAIL] /selection/shadow-dom/cross-shadow-boundary-select-document.html

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#33093474824) failed!

Some nodes are only reached for one of these

Signed-off-by: Simon Sapin <[email protected]>
@SimonSapin SimonSapin added the T-linux-wpt Do a try run of the WPT label Aug 27, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Aug 27, 2026
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (34)
  • CRASH [expected ERROR] /IndexedDB/idbcursor-advance-invalid.any.serviceworker.html
  • CRASH [expected OK] /_mozilla/mozilla/textcontent.html
  • TIMEOUT [expected OK] /_webgl/conformance/reading/read-pixels-test.html
  • OK /_webgl/conformance/textures/misc/texture-upload-size.html (#21770)
    • FAIL [expected PASS] subtest: WebGL test #45

      assert_true: Texture was smaller than the expected size 2x2 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #47

      assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #49

      assert_true: Texture was smaller than the expected size 2x2 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #51

      assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
      

    • PASS [expected FAIL] subtest: WebGL test #53
    • PASS [expected FAIL] subtest: WebGL test #55
    • PASS [expected FAIL] subtest: WebGL test #57
    • PASS [expected FAIL] subtest: WebGL test #59
    • FAIL [expected PASS] subtest: WebGL test #61

      assert_true: Texture was smaller than the expected size 2x2 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #63

      assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
      

    • And 22 more unexpected results...
  • CRASH [expected OK] /_webgl/conformance2/transform_feedback/transform_feedback.html
  • CRASH [expected OK] /compression/decompression-uint8array-output.any.html
  • CRASH [expected OK] /content-security-policy/frame-ancestors/frame-ancestors-sandbox-same-origin-self.html
  • FAIL [expected PASS] /css/css-backgrounds/background-size-041.html
  • ERROR [expected TIMEOUT] /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=cross,allowed=wildcard,expect=400 (#47268)
  • OK /css/css-text-decor/parsing/text-decoration-inset-computed.html
    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0px 0px'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0.5em'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '-1em'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '-1ch -1ch'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '1px 2px'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '1ch -1ch'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value 'calc(1em / 4) calc(-1ch)'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value 'auto'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '10%'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • And 5 more unexpected results...
  • PASS [expected FAIL] /css/css-text-decor/text-underline-position-from-font-variable.html (#45615)
  • OK /dom/nodes/moveBefore/iframe-document-preserve.window.html (#43152)
    • 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
      

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

      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 via innerHTML

      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-cross-origin.sub.window.html (#29056)
    • PASS [expected FAIL] subtest: Cross-origin navigation started from unload handler must be ignored
  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-requestsubmit.html (#44098)
    • FAIL [expected TIMEOUT] subtest: Replace before load, triggered by formElement.requestSubmit()

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?thereplacement=" but got "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/resources/code-injector.html?pipe=sub(none)&amp;code=%0A%20%20%20%20const%20form%20%3D%20document.createElement(%22form%22)%3B%0A%20%20%20%20form.action%20%3D%20%22%2Fcommon%2Fblank.html%22%3B%0A%0A%20%20%20%20const%20input%20%3D%20document.createElement(%22input%22)%3B%0A%20%20%20%20input.type%20%3D%20%22hidden%22%3B%0A%20%20%20%20input.name%20%3D%20%22thereplacement%22%3B%0A%20%20%20%20form.append(input)%3B%0A%0A%20%20%20%20document.currentScript.before(form)%3B%0A%20%20%20%20form.requestSubmit()%3B%0A%20%20"
      

  • CRASH [expected OK] /html/browsers/history/the-location-interface/assign-replace-from-iframe.html
  • CRASH [expected OK] /html/browsers/sandboxing/sandbox-initial-empty-document-toward-same-origin.html (#35948)
  • CRASH [expected OK] /html/canvas/element/canvas-host/2d.canvas.host.size.invalid.attributes.idl.html
  • OK /html/semantics/embedded-content/media-elements/seeking/seek-to-currentTime.html (#46014)
    • FAIL [expected PASS] subtest: seek to currentTime

      assert_array_equals: fired events lengths differ, expected array ["seeking", "timeupdate", "seeked"] length 3, got ["seeking", "timeupdate", "timeupdate", "seeked"] length 4
      

  • OK /html/semantics/forms/form-submission-0/jsurl-form-submit.tentative.html (#36489)
    • PASS [expected FAIL] subtest: Verifies that form submissions scheduled inside javascript: urls take precedence over the javascript: url's return value.
  • CRASH [expected FAIL] /html/semantics/interestfor/interestfor-plain-inline-element.tentative.html
  • OK /html/semantics/scripting-1/the-script-element/execution-timing/077.html (#22139)
    • FAIL [expected PASS] subtest: adding several types of scripts through the DOM and removing some of them confuses scheduler

      assert_array_equals: expected property 1 to be "Script #1 ran" but got "Script #3 ran" (expected array ["Script #2 ran", "Script #1 ran", "Script #3 ran", "Script #4 ran"] got ["Script #2 ran", "Script #3 ran", "Script #4 ran", "Script #1 ran"])
      

  • CRASH [expected OK] /html/webappapis/dynamic-markup-insertion/opening-the-input-stream/remove-initial-about-blankness.window.html
  • OK /infrastructure/testdriver/click_iframe.html
    • FAIL [expected PASS] subtest: TestDriver click on a document in an iframe

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • OK /infrastructure/testdriver/click_window.html (#47303)
    • FAIL [expected PASS] subtest: TestDriver click method in window

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html (#44693)
    • 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 /resource-timing/buffer-full-add-then-clear.html (#40819)
    • PASS [expected FAIL] subtest: Test that if the buffer is cleared after entries were added to the secondary buffer, those entries make it into the primary one
  • OK /resource-timing/test_resource_timing.html (#25720)
    • PASS [expected FAIL] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (script)
  • OK /sanitizer-api/sanitizer-inert-document.html (#45260)
    • PASS [expected FAIL] subtest: Test whether setHTML loads the image.
    • FAIL [expected PASS] subtest: Test whether setHTMLUnsafe loads the image.

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

  • CRASH [expected OK] /trusted-types/TrustedTypePolicyFactory-createPolicy-unenforced.html
  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?11-15 (#44834)
    • TIMEOUT [expected PASS] subtest: Navigate a window via area with javascript:-urls in report-only mode.

      Test timed out
      

  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?26-30 (#38807)
    • TIMEOUT [expected PASS] subtest: Navigate a window via form-submission with javascript:-urls in report-only mode.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Navigate a window via form-submission with javascript:-urls w/ default policy in report-only mode.
    • NOTRUN [expected PASS] subtest: Navigate a frame via form-submission with javascript:-urls in enforcing mode.
    • NOTRUN [expected PASS] subtest: Navigate a frame via form-submission with javascript:-urls w/ default policy in enforcing mode.
  • OK /webdriver/tests/classic/element_click/navigate.py
    • FAIL [expected PASS] subtest: test_link_from_toplevel_context_with_target[_blank]

      webdriver.error.NoSuchWindowException: no such window (404)
      

  • OK [expected TIMEOUT] /webdriver/tests/classic/perform_actions/pointer_mouse.py
    • FAIL [expected PASS] subtest: test_no_browsing_context

      Failed: DID NOT RAISE &lt;class 'webdriver.error.NoSuchWindowException'&gt;
      

    • FAIL [expected PASS] subtest: test_down_closes_browsing_context[without up]

      Failed: DID NOT RAISE &lt;class 'webdriver.error.NoSuchWindowException'&gt;
      

    • FAIL [expected PASS] subtest: test_down_closes_browsing_context[with up]

      webdriver.error.InvalidArgumentException: invalid argument (400): data did not match any variant of untagged enum PointerActionItem at line 1 column 345
      

    • FAIL [expected PASS] subtest: test_move_to_position_in_viewport[default value]

      assert 0 == 1
      

    • FAIL [expected PASS] subtest: test_move_to_origin_position_within_frame[viewport]

      assert 0 == 1
      

    • FAIL [expected PASS] subtest: test_move_to_origin_position_within_frame[pointer]

      assert 0 == 1
      

    • FAIL [expected PASS] subtest: test_move_to_origin_position_within_frame[element]

      assert 80 == 90 ± 1.0e+00
      

  • OK /webdriver/tests/classic/refresh/refresh.py
    • ERROR [expected FAIL] subtest: test_seen_nodes[https]

      teardown error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_seen_nodes[https coop]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_history_pushstate

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_refresh_switches_to_parent_browsing_context

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_reload_resets_iframe_location

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

Stable unexpected results that are known to be intermittent (29)
  • TIMEOUT [expected OK] /_mozilla/mozilla/window-resize-event.html (#36741)
    • TIMEOUT [expected PASS] subtest: Popup onresize event fires after resizeTo

      Test timed out
      

  • 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
      

  • OK /css/css-flexbox/text-as-flexitem-size-001.html (#47104)
    • PASS [expected FAIL] subtest: .flexbox &gt; div 1
    • PASS [expected FAIL] subtest: .flexbox &gt; div 2
    • PASS [expected FAIL] subtest: .flexbox &gt; div 5
    • PASS [expected FAIL] subtest: .flexbox &gt; div 8
    • PASS [expected FAIL] subtest: .flexbox &gt; div 11
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-weight: '430' should prefer '340 398' over '501 550'

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

  • ERROR [expected OK] /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=same,allowed=wildcard,expect=400 (#47268)
  • TIMEOUT [expected OK] /fetch/api/redirect/redirect-keepalive.https.any.html (#32153)
    • TIMEOUT [expected PASS] subtest: [keepalive][iframe][load] mixed content redirect; setting up

      Test timed out
      

  • TIMEOUT /fetch/metadata/generated/css-images.https.sub.tentative.html (#42229)
    • FAIL [expected PASS] subtest: content sec-fetch-site - Cross-Site -&gt; Cross-Site

      assert_unreached: Reached unreachable code
      

  • TIMEOUT /fetch/metadata/generated/css-images.sub.tentative.html (#29047)
    • FAIL [expected PASS] subtest: content sec-fetch-site - HTTPS downgrade-upgrade

      assert_unreached: Reached unreachable code
      

  • 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"
      

  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-submit.html (#44028)
  • TIMEOUT [expected CRASH] /html/browsers/history/the-location-interface/location_replace_session_history.html (#41896)
  • CRASH [expected OK] /html/browsers/origin/cross-origin-objects/cross-origin-objects.html (#47543)
  • OK /html/browsers/windows/browsing-context-names/duplicate-name-order.html (#34623)
    • PASS [expected FAIL] subtest: Duplicate name lookup order
  • OK [expected TIMEOUT] /html/semantics/embedded-content/media-elements/autoplay-allowed-by-permissions-policy.https.sub.html (#46803)
    • PASS [expected TIMEOUT] subtest: Permissions-Policy header: autoplay * allows same-origin iframes.
  • TIMEOUT /html/semantics/embedded-content/media-elements/autoplay-default-permissions-policy.https.sub.html (#46805)
    • TIMEOUT [expected PASS] subtest: Default "autoplay" feature policy ["self"] allows the top-level document.

      Test timed out
      

  • OK [expected TIMEOUT] /html/semantics/embedded-content/media-elements/autoplay-disabled-by-permissions-policy.https.sub.html (#46012, #46804)
  • OK [expected TIMEOUT] /html/semantics/embedded-content/media-elements/src_object_blob.html (#40340)
    • PASS [expected TIMEOUT] subtest: HTMLMediaElement.srcObject blob
  • CRASH [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-reload-location-reload.html (#32595)
  • OK /pointerevents/pointerevent_change-touch-action-onpointerdown_touch.html (#46781)
    • FAIL [expected PASS] subtest: scroll should be received before the test finishes

      assert_true: scroll should be received before the test finishes expected true got false
      

  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?pen (#45536)
    • FAIL [expected PASS] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture to outer frame should not capture.

      assert_array_equals: Received events: innerFrame received pointerdown,innerFrame received pointermove,innerFrame received pointerup,innerFrame received lostpointercapture lengths differ, expected array ["innerFrame received pointerdown", "innerFrame received pointermove", "innerFrame received pointerup"] length 3, got ["innerFrame received pointerdown", "innerFrame received pointermove", "innerFrame received pointerup", "innerFrame received lostpointercapture"] length 4
      

  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?touch (#45445)
    • PASS [expected FAIL] subtest: Test touchpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.
  • 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
      

  • OK /resource-timing/buffer-full-then-increased.html (#44408)
    • FAIL [expected PASS] subtest: Test that overflowing the buffer and immediately increasing its limit does not trigger the resourcetimingbufferfull event

      assert_equals: Number of entries does not match the expected value. expected 3 but got 1
      

  • OK /resource-timing/test_resource_timing.https.html (#25216)
    • PASS [expected FAIL] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (img)
    • FAIL [expected PASS] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (script)

      assert_equals: expected 8.709999999999994 but got 8.7
      

  • OK /trusted-types/trusted-types-navigation.html?16-20 (#44835)
    • PASS [expected FAIL] subtest: Navigate a frame via area with javascript:-urls in report-only mode.
  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?31-35 (#38034)
    • TIMEOUT [expected PASS] subtest: Navigate a frame via form-submission with javascript:-urls in report-only mode.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Navigate a frame via form-submission with javascript:-urls w/ default policy in report-only mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy throwing an exception in enforcing mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy throwing an exception in report-only mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy making the URL invalid in enforcing mode.
  • OK /visual-viewport/resize-event-order.html (#41981)
    • PASS [expected FAIL] subtest: Popup: DOMWindow resize fired before VisualViewport.
  • OK /webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)
    • FAIL [expected PASS] subtest: buffer-stitching-1

      assert_approx_equals: Stitched sine-wave buffers at sample rate 44100 sample[16620] |188149.5 - -0.8962811827659607| = 188150.39628118277 &gt; 0.000090957 expected -0.8962811827659607 +/- 0.000090957 but got 188149.5
      

Stable unexpected results (17)
  • FAIL [expected PASS] /_mozilla/appearance/textarea-caret-following-linebreak-blank-line.html
  • FAIL [expected PASS] /_mozilla/css/input-empty-equiv.html
  • OK /_mozilla/input-events/mousedown-edit-point-textarea-002.html
    • FAIL [expected PASS] subtest: Clicking in the padding of a &lt;textara&gt; should move the edit point properly

      assert_equals: expected 6 but got 7
      

  • FAIL [expected PASS] /css/css-ui/caret-color-bar-shape-text-color.html
  • FAIL [expected PASS] /css/css-ui/caret-color-underscore-shape-text-color.html
  • FAIL [expected PASS] /fullscreen/rendering/exit-fullscreen-scroll-to-unscrollable-area-overflow-hidden.html
  • FAIL [expected PASS] /fullscreen/rendering/exit-fullscreen-scroll-to-unscrollable-area-overflow-x-hidden.html
  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204.html
    • FAIL [expected PASS] subtest: Navigating to a different document with location.assign

      The operation is insecure.
      

  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-001.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-002.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-003.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-004.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-005.html
  • FAIL [expected PASS] /html/editing/editing-0/spelling-and-grammar-checking/spelling-markers-006.html
  • OK /html/webappapis/dynamic-markup-insertion/opening-the-input-stream/location-set-and-document-open.html
    • FAIL [expected PASS] subtest: Location sets should cancel current navigation and prevent later document.open() from doing anything

      assert_equals: Should not have FAIL in our textContent expected "PASS" but got "FAIL"
      

  • OK /paint-timing/fcp-only/fcp-text-input.html
    • PASS [expected FAIL] subtest: Text input should become contentful when its value is non-empty
  • FAIL [expected PASS] /selection/caret/after-designMode-off.html

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#33098580784) failed!

@jdm jdm added the S-tests-failed The changes caused existing tests to fail. label Aug 28, 2026

@mrobinson mrobinson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to add a new LayoutNode method called "paints_text_caret" that returns true for input elements and contenteditable elements. Right now, I think a collapsed selection will paint a text caret with this change and if an input element is initially laid out without a selection, there will be no caret placeholders.

Comment thread components/script/dom/selection.rs Resolved
Comment thread components/script/dom/selection.rs Resolved
Comment thread components/script/dom/selection.rs Resolved
Comment thread components/layout/dom.rs Resolved
@servo-highfive servo-highfive added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 31, 2026
…he empty string vs zero-width whitespace hack

Signed-off-by: Simon Sapin <[email protected]>
@SimonSapin SimonSapin added the T-linux-wpt Do a try run of the WPT label Sep 1, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

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

Signed-off-by: Simon Sapin <[email protected]>
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

⚠️ Try run (#33502843052) failed!

@SimonSapin

Copy link
Copy Markdown
Member Author

The try failure is:

FAIL [expected PASS] /html/semantics/interactive-elements/the-dialog-element/inert-node-is-not-highlighted.html

I pushed a commit to restore that .ini file to how it is on main

Comment thread components/layout/dom.rs Resolved
Comment on lines +185 to +188
fn text_input_widget(&self) -> Option<&DomRefCell<TextInputWidget>> {
None
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can eliminate these and the other implementations returning None by adding a default trait method.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deliberately omitted the default so that every impl had to make an active choice rather than risk forgetting one. But now that it’s done i don’t mind moving the None impls to a default if you think that’s better.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave this one up to you. I think either is fine by me.

// need to fix the rendering of caret beforehand.
// TODO: maybe not `<br>`, but either way when this hack is removed, allow
// `TextInput::sorted_selection_character_offsets_range` to rely on `Rope::last_index()`
// to use an unbounded end.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind just removing the <br> suggestion in the comment above and preserving your new comment?

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Sep 1, 2026
Signed-off-by: Simon Sapin <[email protected]>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 1, 2026
@SimonSapin
SimonSapin enabled auto-merge September 1, 2026 19:11
@SimonSapin
SimonSapin added this pull request to the merge queue Sep 1, 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 Sep 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 1, 2026
@servo-highfive servo-highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Sep 1, 2026
@SimonSapin

Copy link
Copy Markdown
Member Author
Downloading single artifact
Error: Unable to download artifact(s): Artifact not found for name: wpt-filtered-logs-linux
        Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.

🤔

@SimonSapin
SimonSapin added this pull request to the merge queue Sep 1, 2026
@servo-highfive servo-highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Sep 1, 2026
Merged via the queue into servo:main with commit de4f3b5 Sep 1, 2026
42 checks passed
@SimonSapin
SimonSapin deleted the selection-change-without-relayout branch September 1, 2026 21:29
@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 Sep 1, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
This unifies document selection and `<textarea>`/`<input>` selection in
how they are represented between script and layout crates. There is no
longer an `Arc`-based `SharedSelection` accessible to both. Instead,
script goes through `Node::layout_data` a.k.a. `BoxSlot` to update the
selection range in existing text runs when possible.

Testing: WPT should cover most observable behavior, but we may want some
more verification that layout is indeed skipped
Fixes: servo#47392

---------

Signed-off-by: Simon Sapin <[email protected]>
Psychpsyo pushed a commit to Psychpsyo/servo that referenced this pull request Oct 12, 2026
This unifies document selection and `<textarea>`/`<input>` selection in
how they are represented between script and layout crates. There is no
longer an `Arc`-based `SharedSelection` accessible to both. Instead,
script goes through `Node::layout_data` a.k.a. `BoxSlot` to update the
selection range in existing text runs when possible.

Testing: WPT should cover most observable behavior, but we may want some
more verification that layout is indeed skipped
Fixes: servo#47392

---------

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

Labels

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.

Document selection updates should be display-list only when possible

4 participants