From 5a4361c29508e48be0161797304a87e04a0b5d82 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Mon, 20 Mar 2023 19:18:12 +0000 Subject: [PATCH] mixin test --- core/src/themes/ionic.mixins.scss | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/core/src/themes/ionic.mixins.scss b/core/src/themes/ionic.mixins.scss index a024c6a4ee6..0dca8f9d747 100644 --- a/core/src/themes/ionic.mixins.scss +++ b/core/src/themes/ionic.mixins.scss @@ -326,16 +326,31 @@ right: $end; } } @else { - @include ltr() { - left: $start; - right: $end; + @at-root { + @supports (inset-inline-start: 0) { + & { + inset-inline-start: $start; + inset-inline-end: $end; + } + } } - @include rtl() { - left: unset; - right: unset; - left: $end; - right: $start; + @at-root { + @supports not (inset-inline-start: 0) { + & { + @include ltr() { + left: $start; + right: $end; + } + @include rtl() { + left: unset; + right: unset; + + left: $end; + right: $start; + } + } + } } } }