Closed Bug 1919358 Opened 1 year ago Closed 1 year ago

[css-view-transitions] Implement invalidation for view transition pseudo-elements

Categories

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

task

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: emilio, Assigned: boris)

References

(Blocks 1 open bug)

Details

(Whiteboard: [viewtransitions:m1])

Attachments

(1 file)

No description provided.

Changing a root class should change the styles of pseudo-elements as needed (like here)

So I think given how boris implemented the parsing, if we implement the selector-matching correctly, and the traversal in a way such that the view transition pseudo tree is under the root, then I think this "just" works, but otherwise it probably needs some amount of work in the invalidation code.

Whiteboard: [viewtransitions:m1]
Blocks: 1839538
Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Blocks: 1839326

(In reply to Boris Chiou [:boris] from comment #3)

It seems the test (https://searchfox.org/mozilla-central/source/testing/web-platform/tests/css/css-view-transitions/pseudo-rendering-invalidation.html) is still not passed. I'm trying to debug it.

Well. Looks like I cannot reproduce it locally today. It always passes. Let's check in try server again:
https://treeherder.mozilla.org/jobs?repo=try&revision=a8446261008e593d1300614a9c1f3556fd712888

Attached image reftest difference

Looks like there is one difference in each color channel component, in "Group" and "Image-Pair". It's hard to see the difference with my eyes actually.

I guess this intermittent is due to some other rendering issues, not the style invalidation. If the invalidation doesn't work, it should have a significant difference (because we change from display:none in the test).

So I think we do invalidation already, but the failures is due to Bug 1950763.

So there is nothing we can do in this bug. We could update the test expectation of pseudo-rendering-invalidation.html in Bug 1839326 once we fix the rendering issue or find a tentative way to update the test.

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
See Also: → 1976539

So looks like we still have to implement this (per bug 1976539). We accidentally pass other tests because we always restyle all the pseudo-elements when activating the view transition (because we just insert these pseudo-elements). Anyway, I am adding invalidation code in Bug 1976539 (so we don't need to reopen this).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: