LibWeb: Use padding box to get background rect for inline paintable

Fixes regression introduced by f574e2b03a
This commit is contained in:
Aliaksandr Kalenik 2024-08-06 16:17:41 +03:00 committed by Andreas Kling
parent c891b83fc0
commit 0fe84e89b2
Notes: github-actions[bot] 2024-08-06 14:26:28 +00:00
3 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<style type="text/css">
body {
margin: 0;
}
.box {
width: 200px;
}
.box span {
background: rgb(138, 100, 229);
border: 3px solid orange;
font-size: 16px;
color: rgb(255, 255, 255);
padding: 5px 13px;
display: block;
width: fit-content;
}
</style>
<div class="box"><span>Text</span></div>