1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:47:45 +00:00

LibWeb: Resolve flex item auto cross sizes through aspect ratio

Makes the bird logo show up on https://twitter.com/ :^)
This commit is contained in:
Andreas Kling 2023-07-05 17:30:48 +02:00
parent d6a3a50ec9
commit 4474aa0ae5
4 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<!DOCTYPE html><style>
* {
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column
}
svg {
align-self: flex-start;
height: 100px;
}
</style><svg viewBox="0 0 10 5"><rect fill="green" x="0" y="0" width="10" height="5"></svg>