Closed Bug 1973547 Opened 10 months ago Closed 10 months ago

[wpt-sync] Sync PR 53328 - [animation-trigger] Use consistent pixel spaces

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

David Awogbemila <awogbemila@chromium.org> wrote:

[animation-trigger] Use consistent pixel spaces

The animation trigger code stored ranges created by script in CSS
pixels and ranges created by CSS in physical pixels. It also wrongly
mixed pixel spaces when evaluating whether a scroll offset was within
the trigger range.

This patch fixes this by ensuring that
AnimationTrigger::{exit}range{Start,End} is consistently stored in CSS
pixels and handles the conversion between CSS pixels and physical
pixels when evaluating a given scroll offset.

Bug: 424448496, 390314945
Change-Id: I7ce4ab4a9f607238613d9d8e1b612f15f9b2b0b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6652464
Reviewed-by: Vladimir Levin \<vmpstr@chromium.org>
Commit-Queue: David Awogbemila \<awogbemila@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1477340}

Component: web-platform-tests → Layout
Product: Testing → Core

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
PASS: 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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