Closed Bug 1819686 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 38776 - view-transitions: Use default transform-origin for group elements

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Khushal Sagar <khushalsagar@chromium.org> wrote:

view-transitions: Use default transform-origin for group elements

The spec text for computing the transform applied to
::view-transition-group elements is as follows:

"A transform that would map element’s border box from the snapshot root
origin to its current visual position."

This value needs to be relative to the center of the element's border
box. The current implementation computes the transform relative to the
element's top left corner with an additional UA style rule for
transform-origin to account for this. This is inconsistent with the UA
styles defined in the spec.

This change fixes the above by computing the transform relative to the
element's border bounding box center and removes the incorrect UA style
rule.

R=bokan@chromium.org, vmpstr@chromium.org

Fixed:1420369
Change-Id: I0ee77266f29f880e8651111129e832b37eea5c48
Reviewed-on: https://chromium-review.googlesource.com/4299931
WPT-Export-Revision: 4805ad204dcffcfad562a153b5045267a0c5c6e6

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 2 tests

Status Summary

Firefox

PASS: 1
FAIL: 1

Chrome

PASS: 1
FAIL: 1

Safari

FAIL: 2

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bc431f70318b [wpt PR 38776] - view-transitions: Use default transform-origin for group elements, a=testonly https://hg.mozilla.org/integration/autoland/rev/63715cc62eec [wpt PR 38776] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.