Handle role hoisting / ranking.

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

View File

@@ -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}
) {