Closed Bug 2001878 Opened 1 month ago Closed 1 month ago

Implement view-transition types.

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
relnote-firefox --- 147+
firefox147 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

This is specially useful for cross-doc transitions but can also be used for same-doc and is somewhat straight-forward to implement.

The test change is needed to avoid ERROR status due to the previous
transition getting skipped when starting a new one.

The rest is somewhat straight-forward.

Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b7f6d2d17049 https://hg.mozilla.org/integration/autoland/rev/33438771ed7c Implement :active-view-transition-type and co. r=firefox-style-system-reviewers,view-transitions-reviewers,webidl,smaug,boris
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/56279 for changes under testing/web-platform/tests
Pushed by amarc@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/42c61dc9b52d https://hg.mozilla.org/integration/autoland/rev/3dde43a431d2 Revert "Bug 2001878 - Implement :active-view-transition-type and co. r=firefox-style-system-reviewers,view-transitions-reviewers,webidl,smaug,boris" for causing wpt failures @ view-transition-types-mutable-no-document-element-crashtest.html

Backed out for causing wpt failures

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/bc7603ab3124 https://hg.mozilla.org/integration/autoland/rev/cd1d896be1d4 Implement :active-view-transition-type and co. r=firefox-style-system-reviewers,view-transitions-reviewers,webidl,smaug,boris
Flags: needinfo?(emilio)
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
Regressions: 2002652
Upstream PR merged by moz-wptsync-bot

:emilio do you want to nominate this for a release note?

Flags: needinfo?(emilio)

Release Note Request (optional, but appreciated)
[Why is this notable]: Extension to the view transitions API.
[Affects Firefox for Android]: Yes
[Suggested wording]: Firefox now supports the :active-view-transition-type selector and associated view transitions API changes.
[Links (documentation, blog post, etc)]: https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition#types

relnote-firefox: --- → ?
Flags: needinfo?(emilio)
Keywords: dev-doc-needed

Thanks, added to the Fx147 nightly release notes, please allow 30 minutes for the site to update.

Hi Emilio!

I already documented view transition types a little while ago (https://github.com/mdn/content/pull/42187, currently in review), and I'm looking to update the compat data to add in the Fx support. Can I just ask you to clarify the exact nature of the Fx support?

When I documented VTTs, I made sure docs were in place for:

  • Document.startViewTransition(), the types option object property.
  • The :active-view-transition-type() pseudo
  • The :active-view-transition pseudo
  • @view-transition, the types descriptor
  • The CSSViewTransitionRule CSSOM interface
  • The ViewTransition.types property
  • ViewTransitionTypeSet

I also published some examples at https://mdn.github.io/dom-examples/view-transitions/#view-transition-types-examples

From testing the examples in Firefox, it looks like the functionality is fully supported for SPAs, but MPA/cross-document view transitions are not supported yet. So basically, I should set the data for all of the above features to say they are supported in Nighty (147) for now, except for @view-transition and CSSViewTransitionRule. Does that make sense to you?

Flags: needinfo?(emilio)

That's right, cross-doc view transitions are tracked in bug 1860854 .

Flags: needinfo?(emilio)

Documentation for VTT has now been merged, and we are just waiting for the BCD updates to be reviewed, so I am setting this to DDC.

See https://github.com/mdn/content/issues/42258 for PR links.

QA Whiteboard: [qa-triage-done-c148/b147]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: