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:
parent
6087d2feec
commit
64a48065b0
4 changed files with 27 additions and 5 deletions
10
Tests/LibWeb/Layout/input/misc/corner-radius.html
Normal file
10
Tests/LibWeb/Layout/input/misc/corner-radius.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue