mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
30 lines
516 B
HTML
30 lines
516 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
width: 50px;
|
|
grid-template-columns: auto;
|
|
grid-template-rows: 200px;
|
|
justify-items: start;
|
|
align-items: stretch;
|
|
background: red;
|
|
}
|
|
|
|
svg {
|
|
display: block;
|
|
background: lime;
|
|
}
|
|
</style>
|
|
|
|
<div class="grid">
|
|
<!--
|
|
This SVG has an intrinsic width (from the width attribute), but no intrinsic height and no intrinsic aspect ratio.
|
|
In the grid row axis, it should still stretch to fill the 200px track size.
|
|
-->
|
|
<svg width="50"></svg>
|
|
</div>
|