mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 23:50:06 +00:00
With this change we no longer stretch "width: auto" for replaced elements and also use "width calculation rules for block-level replaced elements", like suggested by the spec.
12 lines
No EOL
344 B
HTML
12 lines
No EOL
344 B
HTML
<!DOCTYPE html><style>
|
|
body {
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
.img-wrapper {
|
|
display: grid;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: darkorchid;
|
|
}
|
|
</style><div class="img-wrapper"><img src="data:image/webp;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAIAAAACUFjqAAAADUlEQVR4nGNgGAWkAwABNgABVtF/yAAAAABJRU5ErkJggg=="></div> |