File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 4848 document . head . appendChild ( style ) ;
4949 }
5050
51+ /**
52+ * Zero out safe-area insets in test environments.
53+ * The default 20px --ion-safe-area-top from core.scss is for legacy
54+ * status bar simulation but doesn't represent real browser behavior.
55+ * Tests that need to verify safe-area handling should explicitly set
56+ * these values in their test HTML files.
57+ */
58+ const safeAreaStyle = document . createElement ( 'style' ) ;
59+ safeAreaStyle . innerHTML = `
60+ :root {
61+ --ion-safe-area-top: 0px;
62+ --ion-safe-area-bottom: 0px;
63+ --ion-safe-area-left: 0px;
64+ --ion-safe-area-right: 0px;
65+ }
66+ ` ;
67+ document . head . appendChild ( safeAreaStyle ) ;
68+
5169 /**
5270 * The `palette` param is used to load a specific palette
5371 * for the theme.
You can’t perform that action at this time.
0 commit comments