Closed Bug 2080030 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63406 - Invalidate shapes' percentage `stroke-dashoffset` on viewport resize

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Sampath Samaraweera <sampath.samaraweera@codimite.com> wrote:

Invalidate shapes' percentage stroke-dashoffset on viewport resize

Follow-up to https://crrev.com/c/8361775, which added
stroke-dasharray to the ComputeStrokeHasRelativeLengths() helper
but left out stroke-dashoffset.

A shape whose only percentage-based stroke property is
stroke-dashoffset was therefore never flagged as
viewport-dependent, so the viewport-change handling in
SVGContentContainer skipped re-laying it out and the dash phase
kept its stale value until some unrelated relayout recomputed it.

Add the missing case to ComputeStrokeHasRelativeLengths(). The dash
offset is already resolved against the current viewport at paint
time, in SVGLayoutSupport::ApplyStrokeStyleToStrokeData(), so
flagging the dependency is all that is required.

Fixed: 560379373
Change-Id: Ifa3a6128ef600637cf614a09f4b29b2b5ad3f1aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8423508
Reviewed-by: Fredrik Söderquist \<fs@opera.com>
Commit-Queue: Fredrik Söderquist \<fs@opera.com>
Reviewed-by: Kent Tamura \<tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1714371}

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 63 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 3[GitHub] 45[Gecko-android-em-14-x86_64-debug-geckoview] 46[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 16[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 17[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

FAIL: 3

Safari

PASS: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/091c9449bfd6 https://hg.mozilla.org/integration/autoland/rev/e2d6b59d91a8 [wpt PR 63406] - Invalidate shapes' percentage `stroke-dashoffset` on viewport resize, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.