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