[css-view-transitions] Implement invalidation for view transition pseudo-elements
Categories
(Core :: CSS Parsing and Computation, task, P3)
Tracking
()
People
(Reporter: emilio, Assigned: boris)
References
(Blocks 1 open bug)
Details
(Whiteboard: [viewtransitions:m1])
Attachments
(1 file)
|
170.69 KB,
image/png
|
Details |
| Reporter | ||
Comment 1•1 year ago
|
||
Changing a root class should change the styles of pseudo-elements as needed (like here)
| Reporter | ||
Comment 2•1 year ago
|
||
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.
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
•
|
||
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.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
(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
| Assignee | ||
Comment 5•1 year ago
•
|
||
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).
| Assignee | ||
Comment 6•1 year ago
|
||
So I think we do invalidation already, but the failures is due to Bug 1950763.
| Assignee | ||
Comment 7•1 year ago
|
||
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.
| Assignee | ||
Comment 8•1 year ago
|
||
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).
Description
•