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

LibWeb: Check if corners have radius after converting to device pixels

Check needs to happen after conversion because non-zero radius in
CSSPixels could turn into zero in device pixels.

Fixes https://github.com/SerenityOS/serenity/issues/22765
This commit is contained in:
Aliaksandr Kalenik 2024-01-15 14:23:08 +01:00 committed by Andreas Kling
parent 6087d2feec
commit 64a48065b0
4 changed files with 27 additions and 5 deletions

View file

@ -0,0 +1,10 @@
<!doctype html><style>
body {
width: 1px;
}
div {
border-radius: 8px;
overflow: hidden;
}
/* Test passes if it renders without crashing. */
</style><body><div><img>