Make getComputedStyle work with view-transitions pseudo-elements
Categories
(Core :: CSS Parsing and Computation, task, P3)
Tracking
()
| 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.
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
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.
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
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.
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/30536aa95afd
https://hg.mozilla.org/mozilla-central/rev/69d86a0542f5
Description
•