ladybird/Tests/LibWeb/Layout/input/calc-negative-border-width.html
Tim Ledbetter 588a031e2d 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.
2024-02-24 21:57:24 +01:00

6 lines
143 B
HTML

<!DOCTYPE html><style>
div {
font-size: 16px;
border: calc(-1em + 15px) solid;
}
</style><div>This should have no visible border</div>