mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
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.
This commit is contained in:
@ -220,16 +220,6 @@ html.plt-ios.plt-hybrid, html.plt-ios.plt-pwa {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: remove once Safari 11.2 is no longer supported
|
|
||||||
@supports (padding-top: constant(safe-area-inset-top)) {
|
|
||||||
html {
|
|
||||||
--ion-safe-area-top: constant(safe-area-inset-top);
|
|
||||||
--ion-safe-area-bottom: constant(safe-area-inset-bottom);
|
|
||||||
--ion-safe-area-left: constant(safe-area-inset-left);
|
|
||||||
--ion-safe-area-right: constant(safe-area-inset-right);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@supports (padding-top: env(safe-area-inset-top)) {
|
@supports (padding-top: env(safe-area-inset-top)) {
|
||||||
html {
|
html {
|
||||||
--ion-safe-area-top: env(safe-area-inset-top);
|
--ion-safe-area-top: env(safe-area-inset-top);
|
||||||
|
Reference in New Issue
Block a user