[wpt-sync] Sync PR 64167 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327939
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64167 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64167
Details from upstream follow.
Sam Weinig <sam@webkit.org> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327939
WebKit export from bug: [<!---->Image Redux]<!----> An SVG image with a width or height less than 1 fails to load
<pre>
[Image Redux] An SVG image with a width or height less than 1 fails to loadAn SVG image with a width or height less than a 1 failed to load due to SVGImage's hasSomethingToDraw() returning
false for that case.To fix this, hasSomethingToDraw() now checks if there is a renderer, rather than checking if the legacy m_intrinsicSize
was not empty. This is correct since an SVG image is draw at the negotiated concrete image size, and that can be positive
even when the explicit width and height of the SVG are 0. Along with hasSomethingToDraw() moving off m_intrinsicSize,
draw() also moves off it, and uses the container size it just applied (a.k.a. the concrete object size).This leaves m_intrinsicSize only used for the implementation of SVGImage::size(), which we are working towards removing.
WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=327939">https://bugs.webkit.org/show_bug.cgi?id=327939</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/324048@main">https://commits.webkit.org/324048@main</a>
</pre>
| 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=111270
| Assignee | ||
Comment 2•26 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 148 tests
Status Summary
Firefox
OK : 1[GitHub] 120[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: 2[GitHub] 4[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1815[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1834[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] 1838[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 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: 2
Safari
OK : 1
PASS: 1
FAIL: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
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 - width property changes:
FAIL - uncached width property changes:
FAIL - percentage width, CB width changes:
FAIL - height property changes (with aspect-ratio):
FAIL - loading attribute changes to LAZY:
FAIL
- 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":
Comment 4•18 days ago
|
||
| bugherder | ||
Description
•