1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

LibWeb: Take padding into account when resolving border radii

Before this change, we were resolving border radii values based on
content box + border widths only, ignoring padding.
This commit is contained in:
Andreas Kling 2024-01-07 16:19:47 +01:00
parent 402de2985d
commit ca57e40350
3 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,10 @@
<!doctype html><head>
<link rel="match" href="reference/border-radius-with-padding-ref.html" />
<style type="text/css">
div {
border: 1px solid black;
border-radius: 32px;
padding: 25px;
width: 0px;
}
</style></head><body><div>

View file

@ -0,0 +1,8 @@
<!doctype html><style type="text/css">
div {
border: 1px solid black;
border-radius: 32px;
width: 50px;
height: 50px;
}
</style><div>