Skip to content

Commit dc51b33

Browse files
authored
chore: remove safari 11 code (#28690)
Older versions of WebKit used an old `constant()` syntax for safe area variables: https://caniuse.com/?search=env As of Safari 11.3, `env()` is supported instead. We haven't supported Safari 11 in years, so I think this is safe to remove.
1 parent a17b963 commit dc51b33

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

core/src/css/core.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,6 @@ html.plt-ios.plt-hybrid, html.plt-ios.plt-pwa {
220220
}
221221
}
222222

223-
// TODO: remove once Safari 11.2 is no longer supported
224-
@supports (padding-top: constant(safe-area-inset-top)) {
225-
html {
226-
--ion-safe-area-top: constant(safe-area-inset-top);
227-
--ion-safe-area-bottom: constant(safe-area-inset-bottom);
228-
--ion-safe-area-left: constant(safe-area-inset-left);
229-
--ion-safe-area-right: constant(safe-area-inset-right);
230-
}
231-
}
232-
233223
@supports (padding-top: env(safe-area-inset-top)) {
234224
html {
235225
--ion-safe-area-top: env(safe-area-inset-top);

0 commit comments

Comments
 (0)