[wpt-sync] Sync PR 63308 - Fix expectations for width attribute changes
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63308 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63308
Details from upstream follow.
Tim van der Lippe <TimvdLippe@users.noreply.github.com> wrote:
Fix expectations for width attribute changes
Following https://github.com/whatwg/html/pull/13033 that should timeout instead of load, as no engine currently does that.
Additionally, this test flakes on Safari because all images are lazily loaded from the cache. To dedupe these cache hits, add a query string to each of them to ensure they are all unique.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=102687
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 146 tests
Status Summary
Firefox
OK : 1[GitHub] 119[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 3[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, GitHub] 1812[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1831[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 1835[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 6[GitHub] 50[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 51[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 53[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
Chrome
OK : 1
PASS: 9
Safari
OK : 1
PASS: 3
FAIL: 6
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /html/semantics/embedded-content/the-img-element/relevant-mutations-lazy.html [wpt.fyi]
- uncached width property changes:
FAIL - loading attribute changes to LAZY:
FAIL
- uncached width property changes:
New Tests That Don't Pass
- /html/semantics/embedded-content/the-img-element/animated-webp-update.tentative.html [wpt.fyi]:
FAIL - /html/semantics/embedded-content/the-img-element/attr-img-fetchpriority.html [wpt.fyi]
- fetchpriority attribute on <img> elements should reflect valid IDL values:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - fetchPriority of new Image() is 'auto':
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]
- fetchpriority attribute on <img> elements should reflect valid IDL values:
- /html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html [wpt.fyi]
- HTMLImageElement.prototype.decode(), iframe tests. Decode from removed iframe fails (img not loaded):
FAIL - HTMLImageElement.prototype.decode(), iframe tests. Decode from iframe, later removed, fails (img not loaded):
FAIL
- HTMLImageElement.prototype.decode(), iframe tests. Decode from removed iframe fails (img not loaded):
- /html/semantics/embedded-content/the-img-element/environment-changes/viewport-change.html [wpt.fyi]
- picture: source (max-width:500px) broken image, img broken image, resize to wide:
FAIL - picture: source (max-width:500px) valid image, img broken image, resize to wide:
FAIL - picture: source (max-width:500px) broken image, img broken image, resize to narrow:
FAIL - picture: source (max-width:500px) broken image, img valid image, resize to narrow:
FAIL
- picture: source (max-width:500px) broken image, img broken image, resize to wide:
- /html/semantics/embedded-content/the-img-element/image-base-url.html [wpt.fyi]
- An image should not be refetched upon insertion asynchronously after its Document's base URL changes:
FAIL
- An image should not be refetched upon insertion asynchronously after its Document's base URL changes:
- /html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html [wpt.fyi]
- Test that below viewport images with loading='lazy' and changed to loading='eager' load and do not block the window load event.:
FAIL
- Test that below viewport images with loading='lazy' and changed to loading='eager' load and do not block the window load event.:
- /html/semantics/embedded-content/the-img-element/image-loading-lazy-in-viewport-dynamic.html [wpt.fyi]
- Test that in viewport images with loading='lazy' and changed to loading='eager' do not block the window load event.:
FAIL
- Test that in viewport images with loading='lazy' and changed to loading='eager' do not block the window load event.:
- /html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times.html [wpt.fyi]
- Images with loading='lazy' can be lazy loaded multiple times:
FAIL
- Images with loading='lazy' can be lazy loaded multiple times:
- /html/semantics/embedded-content/the-img-element/list-of-available-images-does-not-coalesce-in-flight-requests.sub.tentative.html [wpt.fyi]
- list of available images does not coalesce in-flight requests:
FAIL
- list of available images does not coalesce in-flight requests:
- /html/semantics/embedded-content/the-img-element/relevant-mutations-lazy.html [wpt.fyi]
- width attribute changes:
FAIL(Chrome:PASS, Safari:FAIL) - width property changes:
FAIL(Chrome:PASS, Safari:FAIL) - uncached width property changes:
FAIL(Chrome:PASS, Safari:PASS) - percentage width, CB width changes:
FAIL(Chrome:PASS, Safari:FAIL) - height property changes (with aspect-ratio):
FAIL(Chrome:PASS, Safari:FAIL) - loading attribute changes to LAZY:
FAIL(Chrome:PASS, Safari:PASS)
- width attribute changes:
- /html/semantics/embedded-content/the-img-element/relevant-mutations.html [wpt.fyi]
- referrerpolicy no-referrer-when-downgrade to absent, src already set:
FAIL - referrerpolicy no-referrer-when-downgrade to empty, src already set:
FAIL - referrerpolicy no-referrer-when-downgrade to invalid, src already set:
FAIL - referrerpolicy no-referrer to absent, src already set:
FAIL - referrerpolicy no-referrer to empty, src already set:
FAIL - referrerpolicy no-referrer to invalid, src already set:
FAIL - srcset is set to same value:
FAIL - sizes is set to same value:
FAIL
- referrerpolicy no-referrer-when-downgrade to absent, src already set:
- /html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-display-none.html [wpt.fyi]
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (display:none):
FAIL - <img srcset="/images/green-1x1.png?f51 50w, /images/green-16x16.png?f51 51w" sizes="calc(0px / 0)"> ref sizes="100vw" (display:none):
FAIL - <img srcset="/images/green-1x1.png?f52 50w, /images/green-16x16.png?f52 51w" sizes="calc(-1px / 0)"> ref sizes="100vw" (display:none):
FAIL
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (display:none):
- /html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-quirks-mode.html [wpt.fyi]
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (quirks mode):
FAIL - <img srcset="/images/green-1x1.png?f51 50w, /images/green-16x16.png?f51 51w" sizes="calc(0px / 0)"> ref sizes="100vw" (quirks mode):
FAIL - <img srcset="/images/green-1x1.png?f52 50w, /images/green-16x16.png?f52 51w" sizes="calc(-1px / 0)"> ref sizes="100vw" (quirks mode):
FAIL
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (quirks mode):
- /html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-standards-mode.html [wpt.fyi]
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (standards mode):
FAIL - <img srcset="/images/green-1x1.png?f51 50w, /images/green-16x16.png?f51 51w" sizes="calc(0px / 0)"> ref sizes="100vw" (standards mode):
FAIL - <img srcset="/images/green-1x1.png?f52 50w, /images/green-16x16.png?f52 51w" sizes="calc(-1px / 0)"> ref sizes="100vw" (standards mode):
FAIL
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (standards mode):
- /html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-width-1000px.html [wpt.fyi]
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (width:1000px):
FAIL - <img srcset="/images/green-1x1.png?f51 50w, /images/green-16x16.png?f51 51w" sizes="calc(0px / 0)"> ref sizes="100vw" (width:1000px):
FAIL - <img srcset="/images/green-1x1.png?f52 50w, /images/green-16x16.png?f52 51w" sizes="calc(-1px / 0)"> ref sizes="100vw" (width:1000px):
FAIL
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (width:1000px):
- /html/semantics/embedded-content/the-img-element/svg-img-density-vs-zoom.html [wpt.fyi]
- SVG, no intrinsic dims + 2x zoom: rendered size scaled, naturalWidth/Height not:
FAIL - SVG, intrinsic width only + 2x zoom: everything scaled:
FAIL
- SVG, no intrinsic dims + 2x zoom: rendered size scaled, naturalWidth/Height not:
- /html/semantics/embedded-content/the-img-element/update-the-image-data/fail-to-resolve.html [wpt.fyi]
- <img src="//[">:
FAIL - <img srcset="//[">:
FAIL - <img srcset="//[" src="/images/red.png">:
FAIL - <img srcset="//[, /images/red.png">:
FAIL
- <img src="//[">:
- /html/semantics/embedded-content/the-img-element/usemap-casing.html [wpt.fyi]
- Image with usemap of #sanityCheck should match the area with map named sanityCheck:
FAIL
- Image with usemap of #sanityCheck should match the area with map named sanityCheck:
- /html/semantics/embedded-content/the-img-element/width-height-attribute-parsing.html [wpt.fyi]
- width and height attribute value "+10":
FAIL - width and height attribute value "50%":
FAIL - width and height attribute value "1.9":
FAIL - width and height attribute value "0.5":
FAIL - width and height attribute value "-0":
FAIL - width and height attribute value "-0.5":
FAIL
- width and height attribute value "+10":
https://hg.mozilla.org/mozilla-central/rev/87dbe27dad7a
https://hg.mozilla.org/mozilla-central/rev/81b11e07b9b4
Description
•