mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(tests): fixing tests having issues with mutation observers
This commit is contained in:
@@ -48,24 +48,6 @@
|
||||
document.head.appendChild(style);
|
||||
}
|
||||
|
||||
/**
|
||||
* Zero out safe-area insets in test environments.
|
||||
* The default 20px --ion-safe-area-top from core.scss is for legacy
|
||||
* status bar simulation but doesn't represent real browser behavior.
|
||||
* Tests that need to verify safe-area handling should explicitly set
|
||||
* these values in their test HTML files.
|
||||
*/
|
||||
const safeAreaStyle = document.createElement('style');
|
||||
safeAreaStyle.innerHTML = `
|
||||
:root {
|
||||
--ion-safe-area-top: 0px;
|
||||
--ion-safe-area-bottom: 0px;
|
||||
--ion-safe-area-left: 0px;
|
||||
--ion-safe-area-right: 0px;
|
||||
}
|
||||
`;
|
||||
document.head.appendChild(safeAreaStyle);
|
||||
|
||||
/**
|
||||
* The `palette` param is used to load a specific palette
|
||||
* for the theme.
|
||||
|
||||
Reference in New Issue
Block a user