Skip to content

script: Do not consider width a relevant <image> mutation - #48599

Merged
mrobinson merged 1 commit into
servo:mainfrom
mrobinson:script-no-relevant-mutation
Oct 3, 2026
Merged

mrobinson merged 1 commit into
servo:mainfrom
mrobinson:script-no-relevant-mutation

Conversation

@mrobinson

@mrobinson mrobinson commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

The specification says that width should be considered a relevant
mutation (i.e. one that can trigger new image data loading), but no
other browser does this. This was probably added to the specification
because it used to be used in a srcset fallback. No browser
implementat that fallback either (and Servo doesn't support the
correponding attribute). Removing width from the list of relevant
mutations fixes test flakiness

Testing: This fixes flakiness in
/_webgl/conformance/textures/misc/texture-upload-size.html. Before this
change the test would flake almost immediately when run locally, but with
it I was able to run it 20+ times without flaking. Another test starts to fail
correctly as we don't support sizes='auto'.
Fixes: #21770.
Fixes: #46882.

@mrobinson
mrobinson requested a review from gterzian as a code owner October 3, 2026 08:26
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 3, 2026
@mrobinson mrobinson added the T-linux-wpt Do a try run of the WPT label Oct 3, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Oct 3, 2026
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

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

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

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

Flaky unexpected result (11)
  • TIMEOUT [expected OK] /IndexedDB/idbcursor-advance.any.worker.html
  • CRASH [expected OK] /content-security-policy/gen/top.http-rp/script-src-self/script-tag.http.html
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html (#20768)
    • FAIL [expected PASS] subtest: Tests that a fragment navigation in the unload handler will not block the initial navigation

      assert_equals: expected "" but got "#fragment"
      

  • CRASH [expected OK] /html/browsers/sandboxing/sandbox-initial-empty-document-toward-same-origin.html (#35948)
  • 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
      

  • 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 /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.
  • TIMEOUT [expected OK] /html/user-activation/navigation-state-reset-sameorigin.html (#45151)
    • TIMEOUT [expected FAIL] subtest: Post-navigation state reset.

      Test timed out
      

  • 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 /user-timing/measure_associated_with_navigation_timing.html (#47273)
    • PASS [expected FAIL] subtest: loadTime plus loadEventEnd to a mark "a" should equal to navigationStart to "a".
  • CRASH [expected OK] /wasm/core/simd/simd_f64x2_rounding.wast.js.html
Stable unexpected results that are known to be intermittent (14)
  • TIMEOUT [expected OK] /_mozilla/mozilla/window-resize-event.html (#36741)
    • TIMEOUT [expected PASS] subtest: Popup onresize event fires after resizeTo

      Test timed out
      

  • TIMEOUT [expected OK] /_webgl/conformance/textures/misc/texture-upload-size.html (#21770)
    • NOTRUN [expected PASS] subtest: Overall test
    • FAIL [expected PASS] subtest: WebGL test #44

      assert_true: video.play failed: NotSupportedError: Media source is not supported expected true got false
      

  • 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
      

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

      assert_false: expected false got true
      

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

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

    • FAIL [expected PASS] subtest: Matching font-weight: '500' should prefer '350 399' over '351 398'

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

  • OK /dom/nodes/moveBefore/iframe-document-preserve.window.html (#43152)
    • PASS [expected FAIL] subtest: moveBefore(): cross-origin iframe is preserved: remove self
  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-submit-button-click.html (#44099)
    • FAIL [expected TIMEOUT] subtest: Replace before load, triggered by submitButton.click()

      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%20const%20button%20%3D%20document.createElement(%22button%22)%3B%0A%20%20%20%20button.type%20%3D%20%22submit%22%3B%0A%20%20%20%20form.append(button)%3B%0A%0A%20%20%20%20document.currentScript.before(form)%3B%0A%20%20%20%20button.click()%3B%0A%20%20"
      

  • TIMEOUT [expected OK] /html/semantics/embedded-content/media-elements/autoplay-allowed-by-permissions-policy.https.sub.html (#46803)
    • TIMEOUT [expected PASS] subtest: Permissions-Policy header: autoplay * allows same-origin iframes.

      Test timed out
      

  • CRASH [expected OK] /html/webappapis/dynamic-markup-insertion/opening-the-input-stream/remove-initial-about-blankness.window.html (#47638)
  • OK /preload/prefetch-document.html (#37210)
    • PASS [expected FAIL] subtest: different-site document prefetch with 'as=document' should not be consumed
  • 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)
    • FAIL [expected PASS] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (img)

      assert_equals: expected 6.289999999999999 but got 6.28
      

  • OK [expected TIMEOUT] /trusted-types/trusted-types-navigation.html?11-15 (#44834)
    • PASS [expected TIMEOUT] subtest: Navigate a window via area with javascript:-urls in report-only mode.
  • OK [expected TIMEOUT] /trusted-types/trusted-types-navigation.html?16-20 (#44835)
    • PASS [expected TIMEOUT] subtest: Navigate a frame via area with javascript:-urls in report-only mode.
    • PASS [expected NOTRUN] subtest: Navigate a frame via area with javascript:-urls w/ default policy in report-only mode.
  • 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.
Stable unexpected results (1)
  • OK /html/semantics/embedded-content/the-img-element/relevant-mutations-lazy.html
    • FAIL [expected PASS] subtest: width attribute changes

      assert_unreached: update the image data didn't run Reached unreachable code
      

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

⚠️ Try run (#37109714089) failed!

The specification says that `width` should be considered a relevant
mutation (i.e. one that can trigger new image data loading), but no
other browser does this. This was probably added to the specification
because it used to be used in a `srcset` fallback. No browser
implementat that fallback either (and Servo doesn't support the
correponding attribute). Removing `width` from the list of relevant
mutations fixes test flakiness

Signed-off-by: Martin Robinson <[email protected]>
@mrobinson
mrobinson force-pushed the script-no-relevant-mutation branch from 18e6164 to 7ecc43e Compare October 3, 2026 10:48
@mrobinson

mrobinson commented Oct 3, 2026 •

Copy link
Copy Markdown
Member Author

This new failure is a progression because we don't support sizes='auto' (Chrome fails this subtest as well).

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 3, 2026
@mrobinson
mrobinson added this pull request to the merge queue Oct 3, 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 Oct 3, 2026
Merged via the queue into servo:main with commit 2e584db Oct 3, 2026
33 checks passed
@mrobinson
mrobinson deleted the script-no-relevant-mutation branch October 3, 2026 13:27
@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 Oct 3, 2026
@TimvdLippe

Copy link
Copy Markdown
Contributor

Opened a spec PR in whatwg/html#13033

RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…48599)

The specification says that `width` should be considered a relevant
mutation (i.e. one that can trigger new image data loading), but no
other browser does this. This was probably added to the specification
because it used to be used in a `srcset` fallback. No browser
implementat that fallback either (and Servo doesn't support the
correponding attribute). Removing `width` from the list of relevant
mutations fixes test flakiness

Testing: This fixes flakiness in
`/_webgl/conformance/textures/misc/texture-upload-size.html`. Before
this
change the test would flake almost immediately when run locally, but
with
it I was able to run it 20+ times without flaking. Another test starts
to fail
correctly as we don't support `sizes='auto'`.
Fixes: servo#21770.
Fixes: servo#46882.

Signed-off-by: Martin Robinson <[email protected]>
hhhwsqhhh pushed a commit to hhhwsqhhh/servo that referenced this pull request Oct 12, 2026
…48599)

The specification says that `width` should be considered a relevant
mutation (i.e. one that can trigger new image data loading), but no
other browser does this. This was probably added to the specification
because it used to be used in a `srcset` fallback. No browser
implementat that fallback either (and Servo doesn't support the
correponding attribute). Removing `width` from the list of relevant
mutations fixes test flakiness

Testing: This fixes flakiness in
`/_webgl/conformance/textures/misc/texture-upload-size.html`. Before
this
change the test would flake almost immediately when run locally, but
with
it I was able to run it 20+ times without flaking. Another test starts
to fail
correctly as we don't support `sizes='auto'`.
Fixes: servo#21770.
Fixes: servo#46882.

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

Labels

None yet

Projects

None yet

4 participants