Closed Bug 2086734 Opened 1 month ago Closed 18 days ago

[wpt-sync] Sync PR 64167 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327939

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
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 load

An 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>

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

Status: NEW → RESOLVED
Closed: 18 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.