File tree 1 file changed +9
-0
lines changed
packages/react-dom-bindings/src/client
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2085,6 +2085,7 @@ export function stopViewTransition(transition: RunningViewTransition) {
2085
2085
interface ViewTransitionPseudoElementType extends Animatable {
2086
2086
_scope : HTMLElement ;
2087
2087
_selector : string ;
2088
+ getComputedStyle ( ) : CSSStyleDeclaration ;
2088
2089
}
2089
2090
2090
2091
function ViewTransitionPseudoElement (
@@ -2138,6 +2139,14 @@ ViewTransitionPseudoElement.prototype.getAnimations = function (
2138
2139
}
2139
2140
return result ;
2140
2141
} ;
2142
+ // $FlowFixMe[prop-missing]
2143
+ ViewTransitionPseudoElement . prototype . getComputedStyle = function (
2144
+ this : ViewTransitionPseudoElementType ,
2145
+ ) : CSSStyleDeclaration {
2146
+ const scope = this . _scope ;
2147
+ const selector = this . _selector ;
2148
+ return getComputedStyle ( scope , selector ) ;
2149
+ } ;
2141
2150
2142
2151
export function createViewTransitionInstance (
2143
2152
name : string ,
You can’t perform that action at this time.
0 commit comments