mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-13 12:31:51 +00:00
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.
19 lines
327 B
HTML
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">
|