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
Notes: sideshowbarker 2024-07-17 09:50:04 +09:00

View file

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