1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00
serenity/Tests/LibWeb/Layout/input/grid/grid-gap-2.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

16 lines
No EOL
362 B
HTML

<style>
* {
font: 16px SerenitySans;
}
.container {
display: grid;
background-color: lightsalmon;
grid-template-columns: auto auto;
gap: calc(1vh + 10px) calc(10% - 10px);
}
.item {
background-color: palevioletred;
}
</style>
<div class="container"><div class="item" style="grid-column: 2 / span 1">1</div><div class="item">2</div></div>