mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:15:06 +00:00

This fixes an issue where images with padding and/or border did not have their size adjusted for `border-box`, thereby becoming larger than intended by the author.
13 lines
263 B
HTML
13 lines
263 B
HTML
<!doctype html><style>
|
|
img {
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
border: 1px solid black;
|
|
}
|
|
.with-height {
|
|
height: 100px;
|
|
}
|
|
.with-width {
|
|
width: 100px;
|
|
}
|
|
</style><img class="with-height" src="120.png"><img class="with-width" src="120.png">
|