mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:17:36 +00:00
LibWeb: Clamp calculated border width values to zero
Previously, a calculated CSS border-width property with a resolved value of less than zero pixels would cause a crash.
This commit is contained in:
parent
8addfc14af
commit
588a031e2d
3 changed files with 23 additions and 1 deletions
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html><style>
|
||||
div {
|
||||
font-size: 16px;
|
||||
border: calc(-1em + 15px) solid;
|
||||
}
|
||||
</style><div>This should have no visible border</div>
|
Loading…
Add table
Add a link
Reference in a new issue