Closed Bug 1919347 Opened 1 year ago Closed 1 year ago

Make getComputedStyle work with view-transitions pseudo-elements

Categories

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

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: emilio, Assigned: boris)

References

(Blocks 1 open bug)

Details

(Whiteboard: [viewtransitions:m1])

Attachments

(2 files)

Much like bug 1919341, we need to make the second argument of getComputedStyle able to handle view transitions pseudo-elements.

Whiteboard: [viewtransitions:m1]

First, we have to allow the functional parameter for named view
transition pseudo elements.
Also, getComputedStyle() may resolve the style lazily (i.e. call
Servo_ResolveStyleLazily()) if its style is not available. In this
case, we have to make sure the matching function work.

TODO: We still have to make sure aElement->GetPseudoElement(aPseudo) work,
by this patch or others.

Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Attachment #9440138 - Attachment description: Bug 1919347 - Support getComputedStyle() for named view transition pseudo elements. (WIP) → Bug 1919347 - Support getComputedStyle() for named view transition pseudo elements if the style is not available.

In order to retrieve the current computed style, we have to look up the
view transition pseudo-element. This patch focus on the search code
mainly.

Note that it's unfortunate we cannot pass the wpt,
css/css-view-transitions/pseudo-get-computed-style.html,
because there is a JS error when running this test, and the static UA
stylesheet hasn't been imported yet.

Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/30536aa95afd Support getComputedStyle() for named view transition pseudo elements if the style is not available. r=view-transitions-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/69d86a0542f5 Fix Element::GetPseudoElement() to retrieve the computed style from the pseudo-element direcly. r=view-transitions-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: