Closed Bug 2086703 Opened 1 month ago Closed 25 days ago

[wpt-sync] Sync PR 64081 - [svg] Relayout an embedded SVG document's root when its frame is resized

Categories

(Core :: SVG, 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 64081 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64081
Details from upstream follow.

Felipe Erias <felipeerias@igalia.com> wrote:

[svg] Relayout an embedded SVG document's root when its frame is resized

The root of an SVG document inside \<object>, \<embed>, or a
RemoteFrameOwner takes the size of its frame. These SVG roots are
identified by IsEmbeddedThroughFrameContainingSVGDocument() and sized
in ComputeReplacedSize().

However, the SVG root's own height is still used to decide whether its
cached layout can be reused. When that height is a fixed length, for
example height="50", the cached layout will still be reused after the
height of the frame changes, and the root will keep its old height
instead of adapting to the new size of its frame.

Changes in width are already handled because the width is recomputed
on every resize.

Make SizeMayChange() return true for SVG roots embedded through a
frame, so that their size is recomputed whenever the frame is resized.

Tests:
/wpt/svg/coordinate-systems/outer-svg-resize-001e.html
/wpt/svg/coordinate-systems/outer-svg-resize-001o.html

Bug: 571643055
Change-Id: I13a438d29d4d01271b7ed0097020ba8a30bba9a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8547836
Reviewed-by: Ian Kilpatrick \<ikilpatrick@chromium.org>
Reviewed-by: Fredrik Söderquist \<fs@opera.com>
Commit-Queue: Felipe Erias \<felipeerias@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1725342}

Component: web-platform-tests → SVG
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 29 tests and 1 subtests

Status Summary

Firefox

OK : 2[GitHub] 10[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: 6[GitHub] 60[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 78[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] 79[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1

Chrome

OK : 2
PASS: 4
FAIL: 2

Safari

OK : 2
PASS: 6

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /svg/coordinate-systems/viewBox-scaling-text-001.html [wpt.fyi]: 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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7fb620db8e9b https://hg.mozilla.org/integration/autoland/rev/2abe3cb2c48d [wpt PR 64081] - [svg] Relayout an embedded SVG document's root when its frame is resized, a=testonly
Status: NEW → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.