ladybird/Tests/LibWeb/Layout/input/svg/svg-inside-inline-block.html
Jelle Raaijmakers 352a66390f LibWeb: Do not resolve inline block height early if height is definite
This condition was included to implement flex containers with auto
height, but it actually can reset the definitive height to 0 for inline
blocks with only replaced elements such as an SVG. Removing the
condition does not break any in-tree test, so let's improve the
situation on the SVG side of things for now.
2024-10-25 15:13:30 +02:00

19 lines
327 B
HTML

<!doctype html>
<style>
#a {
background-color: #f00;
height: 50px;
width: 100px;
}
#b {
display: inline-block;
height: 100%;
}
svg {
background-color: #0f0;
height: 100%;
}
</style>
<div id="a">
<div id="b">
<svg viewBox="0 0 100 50">