Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cdk/layout): breakpoint observer not firing callback on chrome in…
… specific cases (#23571) There appears to be a bug in Chrome, where if we try to use `matchMedia` on a media query that doesn't match anything on the page and a style recalculation is trigger on the `body`, the `matchMedia` callback stops firing which in turn breaks `BreakpointObserver`. These changes expand an existing workaround that we had for WebKit browsers involving inserting a dummy `style` tag on the page so that there's always at least one matching element. Fixes #23546.
- Loading branch information