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 @@ -2079,6 +2079,7 @@ export function stopGestureTransition(transition: RunningGestureTransition) {
2079
2079
interface ViewTransitionPseudoElementType extends Animatable {
2080
2080
_scope : HTMLElement ;
2081
2081
_selector : string ;
2082
+ getComputedStyle ( ) : CSSStyleDeclaration ;
2082
2083
}
2083
2084
2084
2085
function ViewTransitionPseudoElement (
@@ -2132,6 +2133,14 @@ ViewTransitionPseudoElement.prototype.getAnimations = function (
2132
2133
}
2133
2134
return result ;
2134
2135
} ;
2136
+ // $FlowFixMe[prop-missing]
2137
+ ViewTransitionPseudoElement . prototype . getComputedStyle = function (
2138
+ this : ViewTransitionPseudoElementType ,
2139
+ ) : CSSStyleDeclaration {
2140
+ const scope = this . _scope ;
2141
+ const selector = this . _selector ;
2142
+ return getComputedStyle ( scope , selector ) ;
2143
+ } ;
2135
2144
2136
2145
export function createViewTransitionInstance (
2137
2146
name : string ,
You can’t perform that action at this time.
0 commit comments