Closed Bug 1970954 Opened 1 year ago Closed 5 months ago

Make view-transition-name and view-transition-class be tree-scoped names

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: boris, Assigned: jari)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

Attachments

(1 file)

Per spec:
https://drafts.csswg.org/css-view-transitions-1/#view-transition-name-prop, and
https://drafts.csswg.org/css-view-transitions-2/#view-transition-class-prop,
view-transition-name and view-transition-class are tree-scoped names. That means we cannot use them if we specify them in the shadow trees but the usage of the class (in the selectors) of the named view transition pseudo-elements are in the top document.

The test: shadow-part-with-class-inside-shadow.html and the comment in the code.

Whiteboard: [viewtransitions:m2] → [viewtransitions:triage]
Duplicate of this bug: 1971714
Whiteboard: [viewtransitions:triage]
See Also: → 1986602

https://phabricator.services.mozilla.com/D278928 could be a good pattern to take inspiration from.

Assignee: nobody → jjalkanen
Depends on: 2022861
Pushed by jjalkanen@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b431814632d2 https://hg.mozilla.org/integration/autoland/rev/cb2a4a3fddd9 Resolve documents for tree-scoped ViewTransitionClass objects. r=layout-reviewers,firefox-style-system-reviewers,emilio,dshin
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: