Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d6df8a7

Browse files
committedApr 1, 2025·
fix(cdk/overlay): scroll was blocked when zoomed out even if scrolling wasn't an option
Ignore the added tests in Firefox
1 parent 0cd1717 commit d6df8a7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎src/cdk/overlay/scroll/block-scroll-strategy.spec.ts

+10
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ describe('BlockScrollStrategy', () => {
160160
it(
161161
`should't do anything if the page isn't scrollable while zoomed out`,
162162
skipIOS(() => {
163+
if (platform.FIREFOX) {
164+
// style.zoom is only supported from Firefox 126
165+
return;
166+
}
167+
163168
forceScrollElement.style.display = 'none';
164169
document.body.style.zoom = '75%';
165170
overlayRef.attach(componentPortal);
@@ -179,6 +184,11 @@ describe('BlockScrollStrategy', () => {
179184
it(
180185
`should add cdk-global-scrollblock while zoomed in`,
181186
skipIOS(() => {
187+
if (platform.FIREFOX) {
188+
// style.zoom is only supported from Firefox 126
189+
return;
190+
}
191+
182192
forceScrollElement.style.width = window.innerWidth - 20 + 'px';
183193
forceScrollElement.style.height = window.innerHeight - 20 + 'px';
184194
overlayRef.attach(componentPortal);

0 commit comments

Comments
 (0)
Please sign in to comment.