ladybird/Tests/LibWeb/Layout/input/calc-negate-length.html
Andreas Kling e81d4ca1ac LibWeb: Fix off-by-one in CSS calc() "negate" operation
When negating a number, we should subtract it from 0, not 1. :^)
2023-05-17 07:40:17 +02:00

15 lines
No EOL
252 B
HTML

<!doctype html><style>
body {
background: #444;
}
.container {
width: 100px;
background: green;
height: 50px;
}
.foo {
width: calc(100% - 1px);
background: black;
height: 50px;
}
</style><div class=container><div class=foo>