[wpt-sync] Sync PR 64081 - [svg] Relayout an embedded SVG document's root when its frame is resized
Categories
(Core :: SVG, task, P4)
Tracking
()
| 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.htmlBug: 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}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•28 days ago
|
| Assignee | ||
Comment 1•28 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=113701
| Assignee | ||
Comment 2•27 days ago
|
||
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]
Comment 4•25 days ago
|
||
| bugherder | ||
Description
•