Closed Bug 1742343 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 31696 - SVG Text NG: Fix text layout after <svg> transform change

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 31696 into mozilla-central (this bug is closed when the sync is complete).

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

Kent Tamura <tkent@chromium.org> wrote:

SVG Text NG: Fix text layout after <svg> transform change

If 'transform' property of the owner \<svg> is changed, and \<text> is
painted without laying out, the content was painted at a wrong position
because the \<text> kept positions computed with the old scaling factor.

This CL fixes it by invalidating \<text> layout on 'transform' changes
on the owner \<svg>. This CL is similar to crrev.com/942976 but for
\<svg>, not for containing blocks.

Bug: 1271931
Change-Id: Iefc7d9b50a8474ed536be2267ad7e5e237ed2546
Reviewed-on: https://chromium-review.googlesource.com/3293550
WPT-Export-Revision: 154e17db36c94038389139bb6a9a0efcabb04cc6

PR 31696 applied with additional changes from upstream: 41ce16f8d09d9ab0ef7db55d9460119a298b75b4
Component: web-platform-tests → SVG
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

CI Results

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

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/75c440300139
[wpt PR 31696] - SVG Text NG: Fix text layout after <svg> transform change, a=testonly
Status: REOPENED → RESOLVED
Closed: 2 months ago2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.