Handle role hoisting / ranking.

Closes #76 and closes #75.
This commit is contained in:
Paul committed 2021-08-16 17:02:24 +01:00
1 parent 72e9cda844
commit b4f16f0d00
3 files changed
+85 -19

No files matched your search

@@ -14,6 +14,8 @@ const Grid = styled.div<{ width: number; height: number }>`
max-height: min(${(props) => props.height}px, var(--attachment-max-height));
// This is a hack for browsers not supporting aspect-ratio.
// Stolen from https://codepen.io/una/pen/BazyaOM.
@supports not (
aspect-ratio: ${(props) => props.width} / ${(props) => props.height}
) {