ladybird/Tests/LibWeb/Layout/input/svg/natural-width-from-svg-attributes.html
Andreas Kling 8eacfc8f10 LibWeb: Derive SVG root's natural size from width/height attributes
We were incorrectly looking at the CSS computed values for width and
height to determine the natural size of <svg> root elements.
This meant that elements where the attribute and computed value were
different values would end up with incorrect natural size.
2024-08-22 15:29:29 +02:00

14 lines
311 B
HTML

<!doctype html><style>
* {
outline: 1px solid black;
}
body {
height: 128px;
width: 128px;
}
svg {
width: auto;
height: auto;
display: block;
}
</style><body><svg width="64" height="64" viewBox="0 0 10 10" ><rect x="0" y="0" width="10" height="10" fill="green"></rect></svg>