| @@ -229,8 +229,14 @@ | ||
| 229 | 229 | * standalone layout. |
| 230 | 230 | */ |
| 231 | 231 | public static function facade_style(): string { |
| 232 | 232 | return '.wp-has-aspect-ratio .xspeed-video-facade{position:absolute!important;top:0;right:0;bottom:0;left:0;' |
| 233 | + . 'width:100%!important;height:100%!important;aspect-ratio:auto!important}' | |
| 234 | + // Magnific Popup's iframe scaler positions only `iframe` children; | |
| 235 | + // a facade that reaches a popup at runtime (a template class the | |
| 236 | + // server pass doesn't know) would otherwise collapse to nothing | |
| 237 | + // and the modal opens blank. Same absolute-fill treatment. | |
| 238 | + . '.mfp-iframe-scaler .xspeed-video-facade{position:absolute!important;top:0;right:0;bottom:0;left:0;' | |
| 233 | 239 | . 'width:100%!important;height:100%!important;aspect-ratio:auto!important}'; |
| 234 | 240 | } |
| 235 | 241 | |
| 236 | 242 | /** |