[#7650] workarounded Safari position-try-fallbacks freeze
This commit is contained in:
@@ -1,24 +1,3 @@
|
|||||||
@keyframes popoverHide {
|
|
||||||
from {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(3px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes popoverShow {
|
|
||||||
from {
|
|
||||||
transform: translateY(3px);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform: translateY(0px);
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown {
|
.dropdown {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -41,17 +20,34 @@
|
|||||||
border-radius: var(--borderRadius);
|
border-radius: var(--borderRadius);
|
||||||
border: 1px solid var(--surfaceAlt3Color);
|
border: 1px solid var(--surfaceAlt3Color);
|
||||||
&[popover] {
|
&[popover] {
|
||||||
display: none;
|
|
||||||
position-area: bottom span-left;
|
position-area: bottom span-left;
|
||||||
position-try-fallbacks: flip-block;
|
position-try-fallbacks: flip-block;
|
||||||
|
display: none;
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(3px);
|
||||||
transition:
|
transition:
|
||||||
|
opacity var(--animationSpeed),
|
||||||
|
transform var(--animationSpeed),
|
||||||
display var(--animationSpeed) allow-discrete,
|
display var(--animationSpeed) allow-discrete,
|
||||||
overlay var(--animationSpeed) allow-discrete;
|
overlay var(--animationSpeed) allow-discrete;
|
||||||
animation: popoverHide var(--animationSpeed) forwards;
|
|
||||||
&:popover-open {
|
&:popover-open {
|
||||||
animation: popoverShow var(--animationSpeed) forwards;
|
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
@starting-style {
|
||||||
|
&:popover-open {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(3px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @todo temp Safari freeze workaround (#7650) */
|
||||||
|
@supports not (fill: context-stroke) {
|
||||||
|
position-try-fallbacks: none !important;
|
||||||
|
transition: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
&.left {
|
&.left {
|
||||||
position-area: bottom span-right;
|
position-area: bottom span-right;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user