Closed Bug 1911216 Opened 1 year ago Closed 1 year ago

Add CSS selector parsing support for view transitions pseudo-elements

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: boris, Assigned: boris)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [viewtransitions:m1])

Attachments

(2 files)

Add the parser for the following pseudo elements:

  1. ::view-transition
  2. ::view-transition-group(name)
  3. ::view-transition-image-pair(name)
  4. ::view-transition-old(name)
  5. ::view-transition-new(name)

Note that only ::view-transition is not functional. Others take a <pt-name-selector> as their argument (i.e. root or view-transition-name): <pt-name-selector> = '*' | <custom-ident>

The related wpt: testing/web-platform/tests/css/css-view-transitions/parsing/pseudo-elements-valid.html

Blocks: 1914014

This adds the pasring support for:

  1. ::view-transition
  2. ::view-transition-group(name)
  3. ::view-transition-image-pair(name)
  4. ::view-transition-old(name)
  5. ::view-transition-new(name)

We only accept :only-child pseudo class after a view transition pseudo
element. Other non-functional pseudo classes are not allowed. So add a special
case in the parser.

Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Attachment #9420044 - Attachment description: Bug 1911216 - Part 1: Support parsing for view transition selectors. → Bug 1911216 - Part 1: Add CSS selector parsing support for view transition pseudo-elements.
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ab49025245f3 Part 1: Add CSS selector parsing support for view transition pseudo-elements. r=layout-reviewers,firefox-style-system-reviewers,emilio,devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/2a950d7be993 Part 2: Support :only-child for view transition selectors. r=layout-reviewers,firefox-style-system-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/47948 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot
Duplicate of this bug: 1877287
Whiteboard: [viewtransitions:m1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: