1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:17:35 +00:00

Base: Add example for calc(<percentage> - <length>) to calc.html

`calc(<percentage> + -<length>)` did work before, but a direct
`calc(<percentage> - <length>)` was broken. Let's have a test for both.
This commit is contained in:
Linus Groh 2022-06-29 23:35:32 +01:00
parent b3a22c97cd
commit 3c9bf1e161

View file

@ -39,6 +39,11 @@
<div class="box" style="width: calc(50% + 60px);"></div> <div class="box" style="width: calc(50% + 60px);"></div>
</div> </div>
<p>calc(50% - 60px)</p>
<div class="container">
<div class="box" style="width: calc(50% - 60px);"></div>
</div>
<p>calc(50% + -60px)</p> <p>calc(50% + -60px)</p>
<div class="container"> <div class="container">
<div class="box" style="width: calc(50% + -60px);"></div> <div class="box" style="width: calc(50% + -60px);"></div>