File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
packages/react-dom-bindings/src/client Expand file tree Collapse file tree 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) {
20852085interface ViewTransitionPseudoElementType extends Animatable {
20862086 _scope : HTMLElement ;
20872087 _selector : string ;
2088+ getComputedStyle ( ) : CSSStyleDeclaration ;
20882089}
20892090
20902091function ViewTransitionPseudoElement (
@@ -2138,6 +2139,14 @@ ViewTransitionPseudoElement.prototype.getAnimations = function (
21382139 }
21392140 return result ;
21402141} ;
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+ } ;
21412150
21422151export function createViewTransitionInstance (
21432152 name : string ,
You can’t perform that action at this time.
0 commit comments